'delete user script' with ldapsam backend

Jérôme Tournier jerome.tournier at idealx.com
Wed Oct 22 15:33:00 GMT 2003


> Just use "ldap delete dn" and forego the 'delete user script'
> in this case.

Tanks, i've never seen this first option. But this does not solve my problem.
I thinks it is link to the user definition in the directory.
If i create an unix user 'tournier', i have just this in the directory:

dn: uid=tournier,ou=Users,dc=IDEALX,dc=COM
objectClass: top,inetOrgPerson,posixAccount
cn: tournier
sn: tournier
uid: tournier
uidNumber: 1001
gidNumber: 513
homeDirectory: /home/tournier
loginShell: /bin/bash
gecos: System User
description: System User
userPassword: {crypt}x

If i add manually the sambaSAMAccount using 'smbpassword -a tournier',
this append the following:

dn: uid=tournier,ou=Users,dc=IDEALX,dc=COM
objectClass: top,inetOrgPerson,posixAccount,sambaSamAccount
cn: tournier
sn: tournier
uid: tournier
uidNumber: 1001
gidNumber: 513
homeDirectory: /home/tournier
loginShell: /bin/bash
gecos: System User
description: System User
sambaSID: S-1-5-21-737162526-1294331361-3130163117-2000
sambaPrimaryGroupSID: S-1-5-21-737162526-1294331361-3130163117-2001
sambaPwdCanChange: 1066835634
sambaPwdMustChange: 2147483647
sambaLMPassword: 7584248B8D2C9F9EAAD3B435B51404EE
sambaNTPassword: 186CB09181E2C2ECAAC768C47C729904
sambaPwdLastSet: 1066835634
sambaAcctFlags: [U          ]
userPassword: {SMD5}z+PHK7q+BU7RosyyUp+sRMG3z5U=

Now, if i want to remove the windows properties for that user using
'smbpassword -x tournier':

ldapsam_delete_entry: Could not delete attributes for
uid=tournier,ou=Users,dc=IDEALX,dc=COM, error: Naming violation (naming
attribute 'uid' is not present in entry)
Failed to delete entry for user tournier.
Failed to modify password entry for user tournier

So, i don't understand why samba want to remove the uid attribute. This
command should just remove the sambaSAMAccount objectclass and it's
related attributes... am i wrong ? If not, what's the problem ?

Thanks for any help !
-- 
Jérôme





More information about the samba-technical mailing list