Hi folks. I discovered this odd behaviour a few days ago while playing with SAMBA_3 for the first time. The following points apply to samba-3.0.0beta and to cvs-20030807.
1. (tested with tdbsam) If I create a user entry with pdbedit, the domain name field is not set to the domain specified in the configuration file. For me it's getting set to the local machine name. If I logon to a WinXP machine with this account, browsing the network neighbourhood gets kind of strange, as windows assumes a workgroup/domain with such a name then ; 2. (tested with ldapsam) If I try to enumerate the users stored in databse, pdbedit and in turn ldapsam searches with the wrong filter. Also here a machine name is used instead of the correct domain name. Machine sam accounts added through smbd are created properly nevertheless. Below the output of 'pdbedit -L -d 10' on machine 'kartoffel', samba running locally. Best regards, Marcus INFO: Current debug levels: all: True/10 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 lp_load: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file "/opt/samba-cvs-20030807/lib/smb.conf" Processing section "[global]" doing parameter workgroup = blomenkamp doing parameter realm = blomenkamp doing parameter private dir = /etc/samba-pdc/private doing parameter passdb backend = ldapsam guest doing parameter ldap suffix = o=smb,dc=keller doing parameter ldap admin dn = cn=admin,dc=keller doing parameter ldap machine suffix = ou=Computers doing parameter ldap user suffix = ou=Users doing parameter ldap group suffix = ou=Groups pm_process() returned Yes lp_servicenumber: couldn't find homes set_server_role: role = ROLE_STANDALONE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Substituting charset 'ANSI_X3.4-1968' for LOCALE Trying to load: ldapsam Attempting to register passdb backend ldapsam Successfully added passdb backend 'ldapsam' Attempting to register passdb backend ldapsam_compat Successfully added passdb backend 'ldapsam_compat' Attempting to register passdb backend smbpasswd Successfully added passdb backend 'smbpasswd' Attempting to register passdb backend tdbsam Successfully added passdb backend 'tdbsam' Attempting to register passdb backend guest Successfully added passdb backend 'guest' Attempting to find an passdb backend to match ldapsam (ldapsam) Found pdb backend ldapsam Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL))] smbldap_search_suffix: searching for:[(&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL))] smbldap_open_connection: ldap://localhost smbldap_open_connection: connection opened ldap_connect_system: Binding to ldap server ldap://localhost as "cn=admin,dc=keller" ldap_connect_system: succesful connection to the LDAP server The LDAP server is succesful connected smbldap_search_suffix: Problem during the LDAP search: (No such object) smbldap_search_suffix: Query was: o=smb,dc=keller, (&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL)) Problem during LDAPsearch: No such object Query was: o=smb,dc=keller, (&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL)) WARNING: Could not get domain info, nor add one to the domain Continuing on regardless, will be unable to allocate new users/groups, and will risk BDCs having inconsistant SIDs pdb backend ldapsam has a valid init Trying to load: guest Attempting to find an passdb backend to match guest (guest) Found pdb backend guest pdb backend guest has a valid init Netbios name list:- my_netbios_names[0]="KARTOFFEL" Trying to load: ldapsam Attempting to find an passdb backend to match ldapsam (ldapsam) Found pdb backend ldapsam Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL))] smbldap_search_suffix: searching for:[(&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL))] smbldap_open_connection: ldap://localhost smbldap_open_connection: connection opened ldap_connect_system: Binding to ldap server ldap://localhost as "cn=admin,dc=keller" ldap_connect_system: succesful connection to the LDAP server The LDAP server is succesful connected smbldap_search_suffix: Problem during the LDAP search: (No such object) smbldap_search_suffix: Query was: o=smb,dc=keller, (&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL)) Problem during LDAPsearch: No such object Query was: o=smb,dc=keller, (&(objectClass=sambaDomain)(sambaDomainName=KARTOFFEL)) WARNING: Could not get domain info, nor add one to the domain Continuing on regardless, will be unable to allocate new users/groups, and will risk BDCs having inconsistant SIDs pdb backend ldapsam has a valid init Trying to load: guest Attempting to find an passdb backend to match guest (guest) Found pdb backend guest pdb backend guest has a valid init smbldap_search_suffix: searching for:[(&(uid=*)(objectclass=sambaSamAccount))] smbldap_search_suffix: Problem during the LDAP search: (No such object) smbldap_search_suffix: Query was: o=smb,dc=keller, (&(uid=*)(objectclass=sambaSamAccount)) LDAP search failed: No such object Query was: o=smb,dc=keller, (&(uid=*)(objectclass=sambaSamAccount)) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
