huang zuxing blog @ home the quieter you become, the more you are able to hear.

18Jun/15Off

debug standalone samba server 3.6.9 on redhat 6.4 with ldap auth

in smb.conf, set log level to 7 , restart samba service.

use client to map share folders,  check the log,  found below related errors:

FAILED with error NT_STATUS_NO_SUCH_USER

NT_STATUS_LOGON_FAILURE

pdb_set_user_sid_from_string: S-1-5-21-xxxx  isn't a valid SID!

The primary group domain sid(S-1-5-21-2788934063-1944863591-2449575557-513) does not match the domain sid(S-1-5-21-771087727-3566781985) for xxx(S-1-5-21-771087727-3566781985-2800207179

read samba doc, found: after samba3.6.x  it checks sid format.

use net getlocalsid to get the samba server sid:

>net getlocalsid:

SID for domain SAMBAV2 is: S-1-5-21-3808341395-3976352423-2256071886

 

in ldap server, modify user sambaSID to new format:

S-1-5-21-3808341395-3976352423-2256071886-2001

re-mapping the folders from windows machines, it works.

Tagged as: , , Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.