[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Can't delete user using DN (Error 32) or add user using DN (Error 68)



On Wednesday, 11 July 2007, Chase Putans wrote:
> On Wed, 2007-07-11 at 12:50 +0200, Buchan Milne wrote:
> > > Contents of entrymods is as follows:
> > >
> > > dn: uid=<username>,ou=People,dc=3sixtygroup,dc=com
> > > uid: <username>
> > > objectClass: top
> > > objectClass: person
> > > objectClass: organizationalPerson
> > > objectClass: inetOrgPerson
> > > objectClass: posixAccount
> > > objectClass: shadowAccount
> > > objectClass: sambaSamAccount
> > > cn: <username>
> > > sn: <username>
> > > givenName: <username>
> > > uidNumber: <uidnumber>
> > > gidNumber: <gidnumber>
> > > homeDirectory: /home/<username>
> > > loginShell: /bin/bash
> > > gecos: System User
> > > sambaLogonTime: 0
> > > sambaLogoffTime: 2147483647
> > > displayName: <username>
> > > sambaSID: <>
> > > sambaPrimaryGroupSID: <>
> > > sambaLogonScript: scripts\logon.bat
> > > sambaHomePath: \\PDC\<username>
> > > sambaHomeDrive: H:
> > > sambaAcctFlags: [U]
> > >
> > > Contents of entrymods2:
> > >
> > > uid=<username>,ou=People,dc=3sixtygroup,dc=com
> > > changetype: delete
> > >
> > > Any help would be much appreciated.  Thanks.
> >
> > slapcat, slapadd. But, then you may as well upgrade to 2.3, and get new
> > features too (such as smbk5pwd overlay which may help you with password
> > synchronisation etc.).
>
> slapadd seemed to work with my entrymods files.

THe slapadd command is for the output from the slapcat command. Exporting and 
importing should ensure that your database is at least consistent.

I was not suggesting to use slapadd to make modifications to the database 
(after import).


> I didn't know that 
> slapadd didn't pay attention to a lot of the things that ldapadd does.
> When doing an ldapsearch now, I see the user.

Maybe you should read the man pages for the commands before you use them, so 
you are at least aware of what they do.

> However, doing a getent 
> passwd does not show the user as it used to, but this could be an issue
> needing a Samba restart.

No, samba doesn't need a restart, but if you are using nscd, it may need a 
restart (or an 'nscd -i passwd;nscd -i group', or both).

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
http://en.wikipedia.org/wiki/List_of_Internet_slang_phrases

Attachment: pgpYffkFHitee.pgp
Description: PGP signature