Question

Locked

Sun One Directory Server

By casayardie ·
I am a little new to Directory Server and am attempting to set one up on Solaris10 to manage the unix accounts.

In doing so I am trying to create a profile for the unix clients to use for initialization.

The following is the output from ldap_add

"ldapadd: started Mon Jun 9 15:36:45 2008

ldap_init( cuba1share, 389 )
add dn:
cn=profile,ou=profile,ou=unix nis,dc=bcharrispub,dc=com
add ObjectClass:
top
DUAConfigProfile
add defaultServerList:
192.168.16.69
add defaultSearchBase:
ou=unix nis,dc=bcharrispub,dc=com
add authenticationMethod:
simple
add cn:
profile
add credentialLevel:
proxy
add serviceSearchDescriptor:
passwd: ou=unix nis,dc=bcharrispub,dc=com
group: ou=unix nis,dc=bcharrispub,dc=com
shadow: ou=unix nis,dc=bcharrispub,dc=com
netgroup: ou=unix nis,dc=bcharrispub,dc=com
adding new entry cn=profile,ou=profile,ou=unix nis,dc=bcharrispub,dc=comauthenticationMethod: simpledefaultSearchBase: ou=unix nis,dc=bcharrispub,dc=comcredentialLevel: proxyprofileName: profileserviceSearchDescriptor: arg[0]: passwd: ou=unix nis,dc=bcharrispub,dc=com arg[1]: group: ou=unix nis,dc=bcharrispub,dc=com arg[2]: shadow: ou=unix nis,dc=bcharrispub,dc=com arg[3]: netgroup: ou=unix nis,dc=bcharrispub,dc=comdefaultServerList: 192.168.16.69
ldap_add: No such object"

An ldapsearch -b 'ou=profile,dc=bcharrispub,dc=com' -s base '(objectclass=*)' returns
version: 1
dn: ou=profile, dc=bcharrispub, dc=com
objectClass: top
objectClass: OrganizationalUnit
ou: profile

The contents of my ldif file is as follows:

dn: cn=profile,ou=profile,ou=unix nis,dc=bcharrispub,dc=com
authenticationMethod: simple
defaultSearchBase: ou=unix nis,dc=bcharrispub,dc=com
credentialLevel: proxy
profileName: profile
serviceSearchDescriptor:
arg[0]: passwd: ou=unix nis,dc=bcharrispub,dc=com
arg[1]: group: ou=unix nis,dc=bcharrispub,dc=com
arg[2]: shadow: ou=unix nis,dc=bcharrispub,dc=com
arg[3]: netgroup: ou=unix nis,dc=bcharrispub,dc=com
defaultServerList: 192.168.16.69
dn: cn=profile,ou=profile,ou=unix nis,dc=bcharrispub,dc=com
ObjectClass: top
ObjectClass: DUAConfigProfile
defaultServerList: 192.168.16.69
defaultSearchBase: ou=unix nis,dc=bcharrispub,dc=com
authenticationMethod: simple
cn: profile
credentialLevel: proxy
serviceSearchDescriptor: passwd: ou=unix nis,dc=bcharrispub,dc=com
serviceSearchDescriptor: group: ou=unix nis,dc=bcharrispub,dc=com
serviceSearchDescriptor: shadow: ou=unix nis,dc=bcharrispub,dc=com
serviceSearchDescriptor: netgroup: ou=unix nis,dc=bcharrispub,dc=com


Any help would be greatly appreciated.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

ldap_add: No such object

by robo_dev In reply to Sun One Directory Server

The "ldap_add: No such object" error is commonly returned if parent of the entry being added does not exist. Add the parent entry first...

For example, if you are adding "cn=bob,dc=domain,dc=com" and you get:

ldap_add: No such object

The entry "dc=domain,dc=com" likely doesn't exist. You can use ldapsearch to see if does exist:

ldapsearch -b 'dc=domain,dc=com' -s base '(objectclass=*)'

If it doesn't, add it. See Quick Start Guide http://www.openldap.org/doc/admin/quickstart.html

Collapse -

ldap_add: Type or value exists

by casayardie In reply to ldap_add: No such object

The problem appeared to be with the <CR><LF> in my ldif file. However now that that is fixed the I now receive the following:
ldapadd: started Tue Jun 10 12:11:55 2008

ldap_init( cuba1share, 389 )
add authenticationMethod:
simple
simple
add defaultSearchBase:
ou=unix nis, dc=bcharrispub, dc=com
ou=unix nis, dc=bcharrispub, dc=com
add credentialLevel:
proxy
proxy
add profileName:
unixprofile
add serviceSearchDescriptor:

passwd: ou=unix nis, dc=bcharrispub, dc=com
group: ou=unix nis, dc=bcharrispub, dc=com
shadow: ou=unix nis, dc=bcharrispub, dc=com
netgroup: ou=unix nis, dc=bcharrispub, dc=com
add arg[0]:
passwd: ou=unix nis, dc=bcharrispub, dc=com
add arg[1]:
group: ou=unix nis, dc=bcharrispub, dc=com
add arg[2]:
shadow: ou=unix nis, dc=bcharrispub, dc=com
add arg[3]:
netgroup: ou=unix nis, dc=bcharrispub, dc=com
add defaultServerList:
192.168.16.69
192.168.16.69
add dn:
cn=unixprofile, ou=profile, dc=bcharrispub, dc=com
add ObjectClass:
top
DUAConfigProfile
add cn:
unixprofile
adding new entry cn=unixprofile, ou=profile, dc=bcharrispub, dc=com
ldap_add: Type or value exists

How can I determine what :type or value" I am duplicating?

Back to Networks Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums