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

Newbie Question on Account creation



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