Log Problem with Ldap
verdelli christian
verzachris at hotmail.com
Sat Apr 22 15:14:30 GMT 2000
I have posted this questions more than one time on samba-ntdom
but I never had an answer so I mailed directly to you.
I run samba with Ldap, and I have only two users inside the Ldap-Samba
directory tree, chris & usernt1.
When I try to connect with "smbclient \\\\mycomp\\tmp -U chris" it
works fine, but using "smbclient \\\\mycomp\\tmp -U usernt1", the
Ldap search filter gives back root yet.
This is the log file:
############ Using smbclient \\\\mycomp\\tmp -U chris ############
Doing \PIPE\netlogon
api_rpc_command: NET_AUTH2
Doing \PIPE\netlogon
api_rpc_command: NET_SAMLOGON
SAM Logon (Network). Domain:[CHRIS]. User:[chris]
Getting policy vuser_key pnum=3 pid=680 vuid=65
Setting policy sid=S-1-5-21-1852284026-3327323809-4032907042
policy(pnum=4 ): Setting policy state
Service setting policy sid=S-1-5-21-1852284026-3327323809-4032907042
policy(pnum=4 ): Getting policy state
Getting policy sid=S-1-5-21-1852284026-3327323809-4032907042
Connected to LDAP server
Searching in [ou=People, o=zeropiu.it] for
[(&(ntuid=chris)(objectclass=sambaAccount))]
2 matching entries found
get: [uid] = [chris]
Retrieving account [chris]
get: [uidNumber] = [16]
get: [ntuid] = [chris]
get: [rid] = [3e8]
get: [acctFlags] = [[ ]]
get: [lmPassword] = [C0A67821CC8A224EAAD3B435B51404EE]
get: [ntPassword] = [865C340931C1F8BEB094CD1DBA590013]
get: [pwdLastSet] = [38FF1930]
Connection closed
unix_name_to_nt_name_info: Get_Pwnam for user Administratorfailed. Error was
No
such file or directory.
policy(pnum=4 ): Getting policy state
Getting policy sid=S-1-5-21-1852284026-3327323809-4032907042
Connected to LDAP server
Searching in [ou=People, o=zeropiu.it] for
[(&(rid=3e8)(objectclass=sambaAccount))]
2 matching entries found
get: [uid] = [chris]
Retrieving account [chris]
get: [uidNumber] = [16]
get: [ntuid] = [chris]
get: [rid] = [3e8]
get: [acctFlags] = [[ ]]
get: [lmPassword] = [C0A67821CC8A224EAAD3B435B51404EE]
get: [ntPassword] = [865C340931C1F8BEB094CD1DBA590013]
get: [pwdLastSet] = [38FF1930]
Connection closed
Getting policy vuser_key pnum=4 pid=680 vuid=65
TODO: verify that the rid exists
Setting policy sid=S-1-5-21-1852284026-3327323809-4032907042-1000
policy(pnum=5 ): Setting policy state
############ until here it's al OK #############
########### With smbclient \\\\mycomp\\tmp -U usernt1 ########
Doing \PIPE\netlogon
api_rpc_command: NET_AUTH2
Doing \PIPE\netlogon
api_rpc_command: NET_SAMLOGON
SAM Logon (Network). Domain:[CHRIS]. User:[usernt1]
Getting policy vuser_key pnum=3 pid=696 vuid=67
Setting policy sid=S-1-5-21-1852284026-3327323809-4032907042
policy(pnum=4 ): Setting policy state
Service setting policy sid=S-1-5-21-1852284026-3327323809-4032907042
policy(pnum=4 ): Getting policy state
Getting policy sid=S-1-5-21-1852284026-3327323809-4032907042
Connected to LDAP server
Searching in [ou=People, o=zeropiu.it] for
[(&(ntuid=usernt1)(objectclass=sambaAccount))]
2 matching entries found
get: [uid] = [chris]
Retrieving account [chris]
get: [uidNumber] = [16]
get: [ntuid] = [chris]
get: [rid] = [3e8]
get: [acctFlags] = [[ ]]
get: [lmPassword] = [C0A67821CC8A224EAAD3B435B51404EE]
get: [ntPassword] = [865C340931C1F8BEB094CD1DBA590013]
get: [pwdLastSet] = [38FF1930]
Connection closed
unix_name_to_nt_name_info: Get_Pwnam for user Administratorfailed. Error was
No
such file or directory.
policy(pnum=4 ): Getting policy state
Getting policy sid=S-1-5-21-1852284026-3327323809-4032907042
Connected to LDAP server
Searching in [ou=People, o=zeropiu.it] for
[(&(rid=3e8)(objectclass=sambaAccount))]
2 matching entries found
get: [uid] = [chris]
Retrieving account [chris]
get: [uidNumber] = [16]
get: [ntuid] = [chris]
get: [rid] = [3e8]
get: [acctFlags] = [[ ]]
get: [lmPassword] = [C0A67821CC8A224EAAD3B435B51404EE]
get: [ntPassword] = [865C340931C1F8BEB094CD1DBA590013]
get: [pwdLastSet] = [38FF1930]
Connection closed
Getting policy vuser_key pnum=4 pid=696 vuid=67
TODO: verify that the rid exists
Setting policy sid=S-1-5-21-1852284026-3327323809-4032907042-1000
policy(pnum=5 ): Setting policy state
Service setting policy sid=S-1-5-21-1852284026-3327323809-4032907042-1000
########################################################################
The problem is that the search filter :
[(&(ntuid= -user_name- )(objectclass=sambaAccount))]
gives always back the same user (the first I add).
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
More information about the samba-ntdom
mailing list