Marcus Blomenkamp
2003-Aug-07 12:26 UTC
[Samba] pdbedit handles samba domain name incorrectly
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))
Gerald (Jerry) Carter
2003-Aug-08 06:11 UTC
[Samba] pdbedit handles samba domain name incorrectly
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 7 Aug 2003, Marcus Blomenkamp wrote:> 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.This actually looks right because it doesn't appear that you have configured samba as a PDC. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE/Mz8ZIR7qMdg1EfYRAn9hAJ43paeWJSKbOy++D620/hOazocY1ACg095m 4Fx7cox3iFyJ61m8VfvC7ro=CofK -----END PGP SIGNATURE-----
Hi folks, I have samba 2.2.7 running in a Conectiva7, working as PDC. W2000 workstations hooked up to it. I need to know how to give a new user a Roaming Profile already set to my network, with proxy, shortcuts, printers, etc. I've read that including a directory "/Default Profile" in the "/home/netlogon" share would work, but it just does NOT. New user's profiles are copied from "c:\Documents and Settings\Default User" and then uploaded to my profiles share when the user logs off. Can anybody help me in this issue?? Mauricio Kucaniz