Hi,
I'm trying to configure Samba 3.0.5 (3.0.4 earlier) with OpenLDAP 2.1.30:
This is what I get when I try to find out more about the user Administrator (who
was added with the populate script):
aresjr scripts # pdbedit -Lv ak
failed to add domain dn= sambaDomainName=ARESJR,dc=smallworld,dc=no with:
Already exists
Adding domain info for ARESJR failed with NT_STATUS_UNSUCCESSFUL
failed to add domain dn= sambaDomainName=ARESJR,dc=smallworld,dc=no with:
Already exists
Adding domain info for ARESJR failed with NT_STATUS_UNSUCCESSFUL
Username not found!
Any ideas where I went wrong or why pdbedit insists on adding something that is
already there? More info below
Thanks :)
-Arne
slapcat says:
dn: sambaDomainName=ARESJR,dc=smallworld,dc=no
sambaDomainName: ARESJR
sambaSID: S-1-5-21-3441556774-1048832261-964516527
sambaAlgorithmicRidBase: 1000
objectClass: sambaDomain
structuralObjectClass: sambaDomain
entryUUID: 48bf5450-7105-1028-9ae0-eaf932b4187d
creatorsName: cn=root,dc=smallworld,dc=no
createTimestamp: 20040723150405Z
entryCSN: 2004072315:04:05Z#0x0001#0#0000
modifiersName: cn=root,dc=smallworld,dc=no
modifyTimestamp: 20040723150405Z
getent passwd returns (among other things)
Administrator:x:0:512:Netbios Domain Administrator:/home/:/bin/false
so I assume that part is ok.
>From syslog (for the pdbedit command):
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=1 SRCH
base="dc=smallworld,dc=no" scope=2
filter="(&(objectClass=sambaDo
main)(sambaDomainName=ARESJR))"
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=1 SRCH attr=sambaDomainName
sambaNextRid sambaNextUserRid sambaNextGroup Rid sambaSID
sambaAlgorithmicRidBase objectClass
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=1 SEARCH RESULT tag=101 err=0
nentries=0 textJul 23 18:44:29 aresjr slapd[12948]: conn=76 op=2 SRCH
base="dc=smallworld,dc=no" scope=2
filter="(&(sambaDomainName=ARE
SJR)(objectClass=sambaDomain))"
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=2 SRCH attr=sambaDomainName
sambaNextRid sambaNextUserRid sambaNextGroup Rid sambaSID
sambaAlgorithmicRidBase objectClass
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=2 SEARCH RESULT tag=101 err=0
nentries=0 textJul 23 18:44:29 aresjr slapd[12948]: conn=76 op=3 ADD
dn="sambaDomainName=ARESJR,dc=smallworld,dc=no"
Jul 23 18:44:29 aresjr slapd[12948]: => bdb_dn2id_add: put failed:
DB_KEYEXIST:
Key/data pair already exists -30997
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=3 RESULT tag=105 err=68 textJul
23 18:44:29 aresjr slapd[12948]: conn=76 op=3 RESULT tag=105 err=68 textJul 23
18:44:29 aresjr slapd[12948]: conn=76 op=4 SRCH
base="dc=smallworld,dc=no" scope=2
filter="(&(uid=ak)(objectClass
=sambaSamAccount))"
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=4 SRCH attr=uid uidNumber
gidNumber homeDirectory sambaPwdLastSet sambaP wdCanChange sambaPwdMustChange
sambaLogonTime sambaLogoffTime sambaKickoffTime cn displayName sambaHomeDrive
sambaHomePa th sambaLogonScript sambaProfilePath description
sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sam
baNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial
sambaBadPasswordCount sambaBadPasswordTime
Jul 23 18:44:29 aresjr slapd[12948]: conn=76 op=4 SEARCH RESULT tag=101 err=0
nentries=0 text=