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

Re: Problem importing shadowAccount ldif file

Any attribute you want to add to an entry (say, "homeDirectory") must be
defined in some objectClass, and you must be including that objectClass in
your ldif for that entry.

If you *add* "objectClass: posixAccount" to the ldif you had before that
should probably fix it.

If you then decide you want to add some other attributes, like say
"departmentNumber", you can't just add it to the entry -- you need to find
the appropriate objectClass (inetOrgPerson would define departmentNumber) to

----- Original Message -----
From: "John Humphrey" <txkjohn@hotmail.com>
To: <dyoung@NetToNetTech.com>
Cc: <openldap-software@OpenLDAP.org>
Sent: Tuesday, May 01, 2001 5:30 PM
Subject: Re: Problem importing shadowAccount ldif file

> I've checked the site you listed in your reply, but I'm still not clear on
> how to create a 'shadowAccount'. I'm running Linux 7.0 with shadow
> passwords. I need to create an LDAP entry for the accounts in
> (or can I just create a posixAccount). For example, I have a user account
> for 'John Humphrey' with username 'johnh', uid of '500' and guid of '500',
> home directory of '/home/johnh', and a password of 'xx...xhash string'.
> someone please show me an example ldif file that imports this
> into the directory? I would be much appreciative.
> John Humphrey
> >From: "David Young" To: Subject: Re: Problem importing shadowAccount ldif
> >file Date: Tue, 1 May 2001 15:01:39 -0400
> >
> >Take a look at http://www.hklc.com/ldapschema/
> >
> >You are trying to set attributes that are not part of the shadowAccount
> >objectclass. You probably want "posixAccount".
> >