Operating System - Linux
1827853 Members
1804 Online
109969 Solutions
New Discussion

Re: i can not run openldap in RH with RPM installation

 
SOLVED
Go to solution

i can not run openldap in RH with RPM installation

I edit the itmes in /etc/openldap/slapd.conf

suffix "dc=mydomain,dc=com"
rootdn "cn=Manager,dc=mydomain,dc=com"
rootpw secret
directory /var/lib/ldap
then run /sbin/slapd,with port 389 response for telnet???

run command for basic search
ldapsearch -x -b '' -s base "dc=mydomain,dc=com" '(objectclass=*)' namingconectext
return;

output as:

version: 2

#
# filter: (objectclass=*)
# requesting: namingContexts
#

#
dn:
namingContexts: dc=mydomain,dc=com

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

seems ok, then i edit Manager.ldif???
dn: dc=mydomain,dc=com
objectClass: dcObject
objectclass:organization
o: mydomain
dc: mydomain
dn: cn=Manager,dc=mydomain,dc=com
objectClass:organizationalRole
cn: Manager
however, i can not found the program as ldif2ldbm??? anyway, i run :
ldapadd -x -D 'cn=Manager,dc=mydomain,dc=com' -W -f /root/Manager.ldif
Enter LDAP Password:
(once i enter the password as 'secret', it will quit, no enter then return, seems ok)
echo:
adding new entry "dc=mydomain,dc=com "
ldap_add: Undefined attribute type
additional info: dn: D?
ldif_record() = 17

seems add failure, that is all, i can not go any more, how i can continure? what is wrong?

i search follow throug in www.openldap.org, it is weak of beginner how-to
which gentleman can tell me where is my wrong?

thanks,
fredeirck



frederick
4 REPLIES 4
U.SivaKumar_2
Honored Contributor
Solution

Re: i can not run openldap in RH with RPM installation

Hi,
ldap_add: Undefined attribute type
ldap_add: additional info: attribute type undefined

Reason:

You've defined attribute which doesn't exist in any schema currently used.

Suggestions:

Missing or mispelled attribute name.
* Check both input LDIF and schema for misspelling attribute name.
* Check slapd.conf, if schema you use is activated in slapd.conf(5) ( by usage include directive ).

regards,
U.SivaKumar


Innovations are made when conventions are broken

Re: i can not run openldap in RH with RPM installation

Dear Sivakumar or any other professional,

could you tell me where to find the infomation of the openldap schema?

thanks very much
frederick

frederick
U.SivaKumar_2
Honored Contributor

Re: i can not run openldap in RH with RPM installation

Hi,
OpenLDAP documentation has to improve. Still
some are ok.
http://www.openldap.org/doc/admin/schema.html
First of all , Read general LDAP documents and
RFCs more to understand the idea of LDAP.
http://www.umich.edu/~dirsvcs/ldap/doc/

regards,
U.SivaKumar

Innovations are made when conventions are broken

Re: i can not run openldap in RH with RPM installation

Dear Sivakumar,
the website of http://www.umich.edu/~dirsvcs/ldap/doc/
seems is not available
frederick