-
Notifications
You must be signed in to change notification settings - Fork 11
Configure OpenDJ
$ git clone --recursive https://github.com/OpenIdentityPlatform/OpenDJ.git
$ mvn clean install -f OpenDJ/forgerock-parent
$ mvn clean install -f OpenDJ
The build zip can be found at OpenDJ/opendj-server-legacy/target/package/opendj-4.1.11-SNAPSHOT.zip
$ cd OpenDJ/opendj-server-legacy/target/package/opendj
$ ./setup
Use the port 10389 as the LDAP Listener port in the configuration.
Fully Qualified Hostname = pradeebans-mbp.wireless.emory.edu
LDAP Listener Port = 10389
Administration connector port = 4444
LDAP secure access = disabled
Root User DN = cn=example.com
Password = root
pradeebans-mbp.wireless.emory.edu is my wireless interface, automatically picked up by OpenDJ.
You may choose to have Directory Data. You may use an LDIF file such as https://gist.githubusercontent.com/evolve2k/1133500/raw/dd23f0f9b317b3c18ac9337bc44034cefbed328e/ldif
Make sure that the DN matches.
Alternatively, you may also "Import Automatically Generated Sample Data."
Note: When dealing with docker containers, do not attempt to set docker.for.mac.host.internal to 127.0.0.1 (or anything else) in /etc/hosts of the host. That breaks things.
dn: dc=example,dc=com
objectClass: organization
objectClass: dcObject
objectClass: top
o: Example, Inc.
dc: example
description: My wonderful company as much text as you want to place in this line up to 32K continuation data for the line above must have or i.e. ENTER works on both Windows and *nix system - new line MUST begin with ONE SPACE
entryUUID: 724bddc1-a3d1-3d8d-b43c-ae7f3fa6954f
dn: ou=people,dc=example,dc=com
objectClass: top
objectClass: organizationalunit
ou: people
description: All people in organisation
entryUUID: eb8f50dc-6283-3541-a1b3-d0ac3cae9e28
dn: cn=fe,dc=example,dc=com
objectClass: top
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
sn: fe
cn: fe
givenName: fe
userPassword: {SSHA}PtFv+4jkzvP7NYeDDAjxDAfeEsSVGyWYphD6sQ==
uid: smitha
createTimestamp: 20180801183558Z
pwdChangedTime: 20180801183558.934Z
creatorsName: cn=Directory Manager,cn=Root DNs,cn=config
entryUUID: 8f73cf49-e39a-4fd2-9126-a2d5998f6c7b
In the above ldif file, both uid and userpassword are set as smitha.
Once the configuration is complete, open the OpenDJ Server control panel with the credentials you provided.
In our case, it is cn=example.com and root.
To start:
$ bin/start-ds
Once started, you can monitor and configure the system with its user-friendly control panel.
$ bin/control-panel
Use your BindDN and Password accordingly.
I gave the default when I was configuring. So it goes like this:
BindDN: cn=example.com
Password: root
Confirm your installation is successful by the below command:
$ ldapsearch -host pradeebans-mbp.wireless.emory.edu -port 10389 -binddN cn=example.com --passwd root
$ ldapsearch -h pradeebans-mbp.wireless.emory.edu -p 10389 -D cn=fe,dc=example,dc=com -w smitha
$ ldapwhoami -vvv -h pradeebans-mbp.wireless.emory.edu -p 10389 -D cn=fe,dc=example,dc=com -w smitha
ldap_initialize( ldap://pradeebans-mbp.wireless.emory.edu:10389 ) dn:cn=fe,dc=example,dc=com Result: Success (0)
To stop:
$ bin/stop-ds