Displaying 1 result from an estimated 1 matches for "hr_fail".
Did you mean:
hardfail
2012 Jul 27
2
ntlm auth / usernames with white spaces
...(tested those)
diff -up ./src/auth/mech-winbind.c.username ./src/auth/mech-winbind.c
--- ./src/auth/mech-winbind.c.username 2012-07-27 09:52:33.422553807
+0200
+++ ./src/auth/mech-winbind.c 2012-07-27 14:23:03.718619388 +0200
@@ -239,8 +239,16 @@ do_auth_continue(struct auth_request *au
return HR_FAIL;
} else if (strcmp(token[0], "AF") == 0) {
const char *user, *p, *error;
+ int ti=1;
+
+ if(gss_spnego)
+ ti=2;
+ /* some braindead administrators like spaces in usernames */
+ user = token[ti];
+ while(token[++ti]){
+ user = t_strconcat(user, " ", token[ti], NUL...