[CentOS] LDAP error

Greg Bailey gbailey at lxpro.com
Thu Mar 1 13:45:17 UTC 2007


Mário Gamito wrote:
> Hi,
>
> When i try to inser this on LDAP database, i get this error:
> "ldapadd: invalid format (line 14) entry: 
> "uid=spessoa,ou=users,ou=accounts,dc=telbit,dc=pt""
>
> I can't see nothing wrong.
>
> The .ldif file follows my signature.
>
> Any help would be appreciated.
>
> Warm Regards,
> Mário Gamito
> --
> dn: dc=telbit,dc=pt
> objectClass: top
>
(lots of LDIF stuff removed)
>
> dn: uid=spessoa,ou=users,ou=accounts,dc=telbit,dc=pt
> objectClass: top
> objectClass: person
> objectClass: inetOrgPerson
> objectClass: qmailUser
> mail: spessoa at telbit.pt <mailto:spessoa at telbit.pt>
> uid: spessoa
> mailAlternateAddress: spessoa at mail.telbit.pt 
> <mailto:spessoa at mail.telbit.pt>
> mailAlternateAddress: spessoa at metropolis.telbit.pt 
> <mailto:spessoa at metropolis.telbit.pt>
> mailQuotaSize: 1048576
> mailMessageStore: /var/qmail/maildirs/spessoa@ telbit.pt 
> <http://telbit.pt>
> o: Telbit
> userPassword: {MD5}W58yV6tqehUPIPfU8ihVmw==
> sn:: Pessoa
> cn:: Silvia
> departmentNumber: PTIN/ISS
>
I think the "sn::" and "cn::" lines look suspicious.

Normally using a double colon would mean that the value that follows a 
BASE64 encoded, but in your case it's "Pessoa" and "Silvia".  I'd try 
importing the same data with:

sn: Pessoa
cn: Silvia

in that last data record.

-Greg



More information about the CentOS mailing list