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

RES: ENC: Newbie Question on Account creation



Kurt,

You were just right. It had been missing nis.schema and its pre-requisites.
What I didn't know was that I should put them in slapd.conf. After that, I
could add user flawlessly.

Thank you for you support and advie !

Bruno.

-----Mensagem original-----
De: Kurt D. Zeilenga [mailto:Kurt@OpenLDAP.org]
Enviada em: quarta-feira, 27 de outubro de 2004 17:56
Para: Bruno Di Rei Araujo
Cc: 'OpenLDAP-software@OpenLDAP.org'
Assunto: Re: ENC: Newbie Question on Account creation


At 10:54 AM 10/27/2004, Bruno Di Rei Araujo wrote:
>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

Did you read the bit about unrecognized object identifiers?
(which I added just before my prior post)

>The error claims for invalid syntax for value #0, right?

Yes.

>Is it the first argument showing in LDIF file or what?

Should be the first value of the named attribute type, objectClass.

>Is there anyway to figure out which value is with error?

The first value of the named attribute type is posixAccount.
I would guess the server has not been (properly) configured
to know 'posixAccount'.

>That may be related to objectClasses errors or something?

See above.

>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?

Seems nis.schema and its prerequisites.


>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
> 

-- 
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