To the ldap forum:
I have loaded suse 12.1 m5. I have setup an openldap server, which was the main mission of this machine, and it works. It has ssl /tls, certificates are loaded, that works. I used ldap client to setup the ldap browser and that works also. This is the new 2.4.26 server, which has some rather major changes in how ldap is setup. After about 2 weeks I have that under control.
My little domain is setup on dark.net [dc=dark,dc=net].
I used ldapadd to put in the administrator, and I have used ldapsearch to list the subschema. I took the default schema. The list of the subschema includes everything I would like to use.
Now I want to go about the real business of defining users.
I have reviewed a number of pages to ensure I am doing what appears to be the correct procedure, for instance :
http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP-BindPW.html
Which lists:
File: fratbrother.ldif
dn: cn=fratbrother,o=delta cn: fratbrother sn: fratbrother objectclass: top objectclass: person userPassword: fratsecret
ldapadd -f fratbrother.ldif -cxv -D "cn=DeanWormer,o=delta" -w secret2
And other similar updates.
But on my machine I create something simple like:
File : dark.ldif
dn: cn=jctobin,dc=dark,dc=net cn: jctobin userPassword: Hello1$
Ldapadd -x -D ³cn=admin,dc=dark,dc=net² -W -f dark.ldif Enter LDAP Password: Adding new entry ³cn=jctobin,dc=dark,dc=net² Ldap_add: Object class violation (65) Additional info: no objectClass attribute
Obviously my ldap server does not like the ³userPassword² class. I have not been able to use any of the other classes I would like to either [ou: (organizational Unit), uid (unix term for a number corresponding to the user id), etc.]
What have I not setup correctly?
I need to get these users up and running. What can you do for me?
Sincerely,
Tob
John Tobin wrote:
I have reviewed a number of pages to ensure I am doing what appears to be the correct procedure, for instance :
_http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP-BindPW.html _ Which lists:
File: fratbrother.ldif
dn: cn=fratbrother,o=delta cn: fratbrother sn: fratbrother objectclass: top objectclass: person userPassword: fratsecret
ldapadd -f fratbrother.ldif -cxv -D "cn=DeanWormer,o=delta" -w secret2
And other similar updates.
But on my machine I create something simple like:
File : dark.ldif
dn: cn=jctobin,dc=dark,dc=net cn: jctobin userPassword: Hello1$
Ldapadd -x -D “cn=admin,dc=dark,dc=net” -W -f dark.ldif Enter LDAP Password: Adding new entry “cn=jctobin,dc=dark,dc=net” Ldap_add: Object class violation (65) Additional info: no objectClass attribute
Obviously my ldap server does not like the “userPassword” class.
"Obviously" you have the reading comprehension skills of a turnip. The error message you received says nothing about "userPassword" at all.
Compare your dark.ldif to your fratbrother.ldif. One of these is not like the other. If you can't spot the differences, then you need more help than an email list can provide.
openldap-technical@openldap.org