security=server and user_map broken in 1.9.18p6
Martin Huber
hu at garfield.m.isar.de
Sun Aug 9 20:24:18 GMT 1998
security = server is broken in samba 1.9.1
*** reply.c.orig Sat Jun 13 03:44:21 1998
--- reply.c Fri Aug 7 18:36:59 1998
***************
*** 409,414 ****
--- 409,415 ----
pstring smb_ntpasswd;
BOOL valid_nt_password = False;
pstring user;
+ pstring nt_user;
BOOL guest=False;
BOOL computer_id=False;
static BOOL done_sesssetup = False;
***************
*** 591,596 ****
--- 592,598 ----
* function.
*/
+ pstrcpy(nt_user, user); /* preserve it for server_validate() */
(void)map_username(user);
/*
***************
*** 609,615 ****
guest = True;
if (!guest && !(lp_security() == SEC_SERVER &&
! server_validate(user, domain,
smb_apasswd, smb_apasslen,
smb_ntpasswd, smb_ntpasslen)) &&
!check_hosts_equiv(user))
--- 611,617 ----
guest = True;
if (!guest && !(lp_security() == SEC_SERVER &&
! server_validate(nt_user, domain,
smb_apasswd, smb_apasslen,
smb_ntpasswd, smb_ntpasslen)) &&
!check_hosts_equiv(user))
More information about the samba
mailing list