Steps :-
1. Download the binaries from http://www.sunfreeware.com/indexsparc10.html
or download all these from here :- Part1 and Part2
The download will contain the following packages -
db-4.2.52.NC-sol10-sparc-local.gz
openldap-stable-20080813.tgz
libgcc-3.4.6-sol10-sparc-local.gz
openssl-0.9.8j-sol10-sparc-local.gz
openldap-2.4.11-sol10-sparc-local.gz
sasl-2.1.21-sol10-sparc-local.gz
2. Now login to your solaris sparc box as "root" , root access has to be there ,else it wont install.
3. run pkgadd command , to check if it working. then unzip the files using "gunzip filename"
4. run pkgadd -d db-4.2.52.NC-sol10-sparc-local and similarly install all the packages
5. After installing all the packages , configure slapd.conf file based on your requirements .
slapd.conf can be located at /usr/local/etc/openldap
the sample slapd.conf will look like
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw adminadmin
directory /usr/local/var/openldap-data
index default pres,eq
index objectClass eq
index uid,cn,sn
6. Start slapd using the command from /usr/local/libexec
./slapd -f ../etc/openldap/slapd.conf
7. Now the connect the open ldap using our ldapbrowser
ensure that "append base dn" is checked .
8. After connecting import the following for the base dn
dn: dc=example,dc=com
dc: example
objectClass: top
objectClass: dcObject
objectClass: organization
o: root
ou: mostral
9. then import the actual data , sample would be like
dn: ou=mostral, dc=example,dc=com
ou: mostral
objectClass: top
objectClass: organizationalunit
dn: uid=scarter,ou=mostral, dc=example,dc=com
givenName: Sam
sn: Carter
telephoneNumber: +1 408 555 4798
userPassword:: e1NTSEF9UmIxZk9JL2x5TlQ3bGFEc0FKaEhJdEs4bW9LbkVBSWZEMWpNU0E9PQ
==
ou: Accounting
ou: mostral
l: Sunnyvale
roomNumber: 4612
mail: scarter@example.com
facsimileTelephoneNumber: +1 408 555 9751
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
uid: scarter
cn: Sam Carter
Now open ldap 2.4.11 is ready to use with some sample data in it .
Facebook Badge
This blog is all about the SOA Technology and LDAP
Showing posts with label unix. Show all posts
Showing posts with label unix. Show all posts
Thursday, March 19, 2009
Subscribe to:
Posts (Atom)