Setting up LDAP client profiles for Solaris

Solaris 8

/usr/sbin/ldap_gen_profile -P <profilename> -b <base DN> -D <bindDN> -w <bindDNpassword> <ldapserver_address[es]>
eg
/usr/sbin/ldap_gen_profile -P jw-prof -b dc=jw,dc=com -D "cn=proxyagent,ou=profile,dc=jw,dc=com" -w <proxyagentpasswd> -a simple 10.11.12.13 > profile.ldif

****** Notes: ******
1/ The ldif file that is created has leading whitespace on the lines which must be removed prior to using ldapadd to add it