[Samba] samba 3.0.1 and 3.0.2rc2 - ldap backend problem - still not solved :(

boka boka at sto-procent.art.pl
Thu Feb 5 12:50:29 GMT 2004


Hi !

well, i told You that i solved my problem with ldap backend and samba - 
unfortunately problem still exists :(

Right now I can not add new users and machine accounts (adding and 
modifing of groups works), fxp:

[root at codo i386]# pdbedit -d 10 -a -m boka2

...
set_server_role: role = ROLE_DOMAIN_PDC
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Trying to load: ldapsam:ldap://localhost
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:ldap://localhost 
(ldapsam)
Found pdb backend ldapsam
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_search_suffix: searching 
for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_open_connection: ldap://localhost
smbldap_open_connection: connection opened
tdb(unnamed): tdb_brlock failed (fd=3) at offset 4 rw_type=1 
lck_type=13: Zasoby chwilowo niedoste;pne
ldap_connect_system: Binding to ldap server ldap://localhost as 
"cn=Manager,dc=EUROZET,dc=PL"
ldap_connect_system: succesful connection to the LDAP server
The LDAP server is succesful connected
pdb backend ldapsam:ldap://localhost has a valid init
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]="CODO"
Trying to load: ldapsam:ldap://localhost
Attempting to find an passdb backend to match ldapsam:ldap://localhost 
(ldapsam)
Found pdb backend ldapsam
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_search_suffix: searching 
for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_open_connection: ldap://localhost
smbldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server ldap://localhost as 
"cn=Manager,dc=EUROZET,dc=PL"
ldap_connect_system: succesful connection to the LDAP server
The LDAP server is succesful connected
pdb backend ldapsam:ldap://localhost has a valid init
Attempting to find an passdb backend to match guest (guest)
Found pdb backend guest
pdb backend guest has a valid init
tdb(unnamed): tdb_brlock failed (fd=6) at offset 4 rw_type=1 
lck_type=13: Zasoby chwilowo niedoste;pne
account_policy_get: maximum password age:-1
account_policy_get: minimum password age:0
pdb_set_username: setting username boka2$, was
pdb_set_group_sid: setting group sid 
S-1-5-21-133419789-486977345-1400590255-515
pdb_set_group_sid_from_rid:
         setting group sid S-1-5-21-133419789-486977345-1400590255-515 
from rid 515
smbldap_search_suffix: searching 
for:[(&(&(uid=boka2$)(objectclass=sambaSamAccount))(objectclass=sambaSamAccount))]
smbldap_search_suffix: searching 
for:[(&(uid=boka2$)(objectclass=sambaSamAccount))]
smbldap_search_suffix: searching 
for:[(&(sambaSID=S-0-0)(|(objectClass=sambaIdmapEntry)(objectClass=sambaSidEntry)))]
ldapsam_add_sam_account: Adding new user
init_ldap_from_sam: Setting entry for user: boka2$
ldapsam_modify_entry: Failed to add user dn= 
uid=boka2$,ou=Computers,dc=EUROZET,dc=PL with: Object class violation
         object class 'sambaSamAccount' requires attribute 'sambaSID'
ldapsam_add_sam_account: failed to modify/add user with uid = boka2$ (dn 
= uid=boka2$,ou=Computers,dc=EUROZET,dc=PL)
Unable to add machine! (does it already exist?)

[root at codo i386]# pdbedit -d 10 -a -u boka

lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_PDC
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Trying to load: ldapsam:ldap://localhost
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:ldap://localhost 
(ldapsam)
Found pdb backend ldapsam
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_search_suffix: searching 
for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_open_connection: ldap://localhost
smbldap_open_connection: connection opened
tdb(unnamed): tdb_brlock failed (fd=3) at offset 4 rw_type=1 
lck_type=13: Zasoby chwilowo niedoste;pne
ldap_connect_system: Binding to ldap server ldap://localhost as 
"cn=Manager,dc=ITSTUFF,dc=PL"
ldap_connect_system: succesful connection to the LDAP server
The LDAP server is succesful connected
pdb backend ldapsam:ldap://localhost has a valid init
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]="CODO"
Trying to load: ldapsam:ldap://localhost
Attempting to find an passdb backend to match ldapsam:ldap://localhost 
(ldapsam)
Found pdb backend ldapsam
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_search_suffix: searching 
for:[(&(objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_open_connection: ldap://localhost
smbldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server ldap://localhost as 
"cn=Manager,dc=ITSTUFF,dc=PL"
ldap_connect_system: succesful connection to the LDAP server
The LDAP server is succesful connected
pdb backend ldapsam:ldap://localhost has a valid init
Attempting to find an passdb backend to match guest (guest)
Found pdb backend guest
pdb backend guest has a valid init
Finding user boka2
Trying _Get_Pwnam(), username as lowercase is boka2
Trying _Get_Pwnam(), username as uppercase is BOKA2
Checking combinations of 0 uppercase letters in boka2
Get_Pwnam_internals didn't find user [boka2]!
could not create account to add new user boka2

i'm broke ... i dont want to store machine accounts in people container ...

greetz
boka


More information about the samba-technical mailing list