[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ENC: Newbie Question on Account creation
Kurt,
I've checked the points stated by
http://www.openldap.org/faq/index.cgi?file=648 but I had no success:
. There was no "Extraneous White spaces"
. I've saved my file with UTF-8 encoding
. There was no empty values
The error claims for invalid syntax for value #0, right?
Is it the first argument showing in LDIF file or what?
Is there anyway to figure out which value is with error?
That may be related to objectClasses errors or something?
I don't know much about LDAP classes, but I took a look at its schemas and
all "must" arguments were supplied and even some "may" values, so I think it
is "correct".
What else may I be missing?
Thanks,
Bruno.
-----Mensagem original-----
De: Kurt D. Zeilenga [mailto:Kurt@OpenLDAP.org]
Enviada em: quarta-feira, 27 de outubro de 2004 16:33
Para: Bruno Di Rei Araujo
Cc: 'OpenLDAP-software@OpenLDAP.org'
Assunto: Re: Newbie Question on Account creation
At 09:01 AM 10/27/2004, Bruno Di Rei Araujo wrote:
>I've installed OpenLDAP 2.2.17 for the very first time and I'm trying, now,
>to populate its database with my some accounts.
>What I really want is to switch from my /etc/shadow login to LDAP based
one.
>I never worked with LDAP, so I have a slightly idea of what I should do.
>Anyway, I'm stuck in user creation stage, doing the following:
>
> [root@srvoracle root]# ldapadd -x -D
>"cn=Manager,dc=calu,dc=com,dc=br" -W -f /root/brunoa.ldif
> Enter LDAP Password:
> adding new entry "userid=brunoa,ou=usuarios,dc=calu,dc=com,dc=br"
> ldap_add: Invalid syntax (21)
> additional info: objectClass: value #0 invalid per syntax
See http://www.openldap.org/faq/index.cgi?file=648 for common
reasons why this error is returned.
>
> [root@srvoracle root]#
>
>My ldif contents as follows:
>
> [root@srvoracle root]# cat brunoa.ldif
> dn: userid=brunoa,ou=usuarios,dc=calu,dc=com,dc=br
> userid: brunoa
> uid: brunoa
> cn: Bruno Araujo
> objectClass: posixAccount
> objectClass: account
> objectClass: top
> userPassword: {MD5}4QrcOUm6Wau+VuBX8g+IPg==
> uidNumber: 12706
> gidNumber: 0
> homeDirectory: 7
>
>And my slapd.conf is as follows:
>
> [root@srvoracle root]# cat /usr/local/etc/openldap/slapd.conf |
grep
>-v ^#
> include /usr/local/etc/openldap/schema/core.schema
> pidfile /usr/local/var/run/slapd.pid
> argsfile /usr/local/var/run/slapd.args
> database bdb
> suffix "dc=calu,dc=com,dc=br"
> rootdn "cn=Manager,dc=calu,dc=com,dc=br"
> rootpw secret
> directory /usr/local/var/openldap-data
> index objectClass eq
>
>I've added the first DN as follows:
>
> [root@srvoracle root]# ldapadd -x -D
>"cn=Manager,dc=calu,dc=com,dc=br" -W -f /root/inicial.ldif
> [root@srvoracle root]# cat inicial.ldif
> dn: dc=calu,dc=com,dc=br
> objectclass: dcObject
> objectclass: organization
> o: Cooperativa Agropecuaria Ltda de Uberlandia
> dc: calu
>
> dn: cn=Manager,dc=calu,dc=com,dc=br
> objectclass: organizationalRole
> cn: Manager
>
>I can ldapsearch the LDAP db, but can't add users in the way I'm showing
>
>
>--
>Internal Virus Database is out-of-date.
>Checked by AVG Anti-Virus (http://www.grisoft.com).
>Version: 7.0.279 / Virus Database: 264.10.2 - Release Date: 08/10/04
>
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.279 / Virus Database: 264.10.2 - Release Date: 08/10/04
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.279 / Virus Database: 264.10.2 - Release Date: 08/10/04
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.279 / Virus Database: 264.10.2 - Release Date: 08/10/04