Hi,

I Have an OpenLDAP 2.4.18 server on RHEL 5.3. I can get Linux clients to use the master by use of the /etc/ldap.conf file. I'm now trying to get a SOlaris 10 client to use the master by initialising with the default profileName. If I run:

ldapclient -v init -a proxypassword=xxxxx -a proxydn=cn=proxyagent,ou=profile,dc=ldn,dc=sw,dc=com -a domainname=ldn.sw.com 10.2.250.15

This errors with

Parsing proxypassword=5wap5proxy
Parsing proxydn=cn=proxyagent,ou=profile,dc=ldn,dc=sw,dc=com
Parsing domainname=ldn.sw.com
Arguments parsed:
        domainName: ldn.sw.com
        proxyDN: cn=proxyagent,ou=profile,dc=ldn,dc=sw,dc=com
        proxyPassword: xxxxx
        defaultServerList: 10.2.250.15
Handling init option
About to configure machine by downloading a profile
No profile specified. Using "default"
findBaseDN: begins
findBaseDN: ldap not running
findBaseDN: calling __ns_ldap_default_config()
found 1 namingcontexts
findBaseDN: __ns_ldap_list(NULL, "(&(objectclass=nisDomainObject)(nisdomain=ldn.sw.com))"
rootDN[0] dc=ldn,dc=sw,dc=com
NOTFOUND:Could not find the nisDomainObject for DN dc=ldn,dc=sw,dc=com
found_cxt = -1
findBaseDN: Err exit
Failed to find defaultSearchBase for domain ldn.sw.com

So the 2 errors are the NOTFOUND nisDomainObject which is there when I check on the master:

[root@msldap01 openldap2.4]# ldapsearch2.4 -h 10.2.250.15 -D cn=proxyagent,ou=profile,dc=ldn,dc=sw,dc=com -w xxxxx-b dc=ldn,dc=sw,dc=com -s base
# extended LDIF
#
# LDAPv3
# base <dc=ldn,dc=sw,dc=com> with scope baseObject
# filter: (objectclass=*)
# requesting: ALL
#

# ldn.sw.com
dn: dc=ldn,dc=sw,dc=com
dc: ldn
o: ldn
associatedDomain: ldn.sw.com
nisDomain: ldn.sw.com
objectClass: dcObject
objectClass: organization
objectClass: domainRelatedObject
objectClass: nisDomainObject
objectClass: top

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


The other error is 'Failed to find defaultSearchBase for domain ldn.sw.com'

[root@msldap01 openldap2.4]# ldapsearch2.4 -h 10.2.250.15 -D cn=proxyagent,ou=profile,dc=ldn,dc=sw,dc=com -w 5wap5proxy -b cn=default,ou=profile,dc=ldn,dc=sw,dc=com -s base
# extended LDIF
#
# LDAPv3
# base <cn=default,ou=profile,dc=ldn,dc=sw,dc=com> with scope baseObject
# filter: (objectclass=*)
# requesting: ALL
#

# default, profile, ldn.sw.com
dn: cn=default,ou=profile,dc=ldn,dc=sw,dc=com
defaultSearchBase: dc=ldn,dc=sw,dc=com
authenticationMethod: simple
followReferrals: TRUE
profileTTL: 43200
searchTimeLimit: 30
objectClass: DUAConfigProfile
defaultServerList: 10.2.250.15
credentialLevel: proxy
cn: default
defaultSearchScope: one

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

Obviously I've missed something, anyhelp would be appreciated.

Thanks,

Stuart.