For NTLM users, the domain and user names may be separated by a + or a \\
as pointed out by mrac33:
(http://sourceforge.net/tracker/index.php?func=detail&aid=
3532108&group_id=68910&atid=522791)
For compatibility reasons, the _ separator is still retained.
Thanks to mrac33 for reporting and fixing this bug.
} else {
strlow(user);
if(NtlmUserFormat == NTLMUSERFORMAT_USER) {
- if((str = strchr(user,'_')) != 0) {
- strcpy(warea,str+1);
- strcpy(user,warea);
- }
- if((str = strchr(user,'+')) != 0) {
+ if ((str=strchr(user,'+'))!=NULL || (str=strchr(user,'\\'))!=NULL || (str=strchr(user,'_'))!=NULL) {
strcpy(warea,str+1);
strcpy(user,warea);
}