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

Re: ldapadd problem



Because you dont have "shadowLastChange" defined on your schemas, be shor you have it ;)
And you are not violating schema rules...

On Thu, 10 Apr 2003 17:03:17 +0300 (EEST)
Shahin <shahin@gateway.ege.edu.tr> wrote:

> Hi,
> I have migrate my passwd
> ./migrate_passwd.pl /etc/passwd ~shahin/passwd.ldif
> 
> then tried to add with
> ldapadd -x -D "cn=Manager,dc=Ege,dc=tr" -W -f passwd.ldif
> 
> and it generate an error
> ----------------------------
> [root@proxy shahin]# ldapadd -x -D "cn=Manager,dc=Ege,dc=tr" -W -f
> passwd.ldif
> Enter LDAP Password:
> adding new entry "uid=erce,ou=People,dc=Ege,dc=tr"
> ldap_add: Undefined attribute type
>         additional info: shadowLastChange: attribute type undefined
> 
> ldif_record() = 17
> ---------------------
> 
> and my passwd.ldif includes
> ------------------------
> dn: uid=erce,ou=People,dc=Ege,dc=tr
> uid: erce
> cn: erhan cetin
> objectClass: account
> objectClass: posixAccount
> objectClass: top
> objectClass: shadowAccount
> userPassword: {crypt}$1$oGRsbfgm$J/ifAAm6a8dMtxXjYe2um1
> shadowLastChange: 12074
> shadowMax: 99999
> shadowWarning: 7
> loginShell: /bin/bash
> uidNumber: 500
> gidNumber: 500
> homeDirectory: /home/erce
> gecos: erhan cetin
> ----------------------
> 
> what is the problem with this..
> 
> 
> Thanks
> 
> Shahin
>