OpenDS Tips: Setting preferences for OpenDS tools

Opends Logo Tag In the previous tips for OpenDS, the LDAP directory server in Java, I've shown the long and exhaustive dsconfig commands. As you may have noticed, there are many properties to specify to reference the server: the hostname, the port number, the authentication DN... Those properties are used by most OpenDS command line tools and repeating them all the time can be tedious.

Fortunately, it is possible to set the default values for the OpenDS command line tools in a property file, stored either in a .opends directory in your home, or in the instance config directory.

Here's a sample file :

$ cat ~/.opends/tools.properties
port=1389
dsconfig.port=4444
stop-ds.port=4444
hostname=localhost
bindDN=cn=Directory Manager
bindPassword=secret12

If you're storing passwords in the file, make sure you're not allowing other users to read the file.

You can find more details on the tools.properties file on OpenDS documentation wiki.

Technorati Tags: , , , ,

Comments:

Post a Comment:
Comments are closed for this entry.
About

This is the blog of a senior software engineer, specialized in LDAP, Directory Server and OpenDS. Ludovic Poitou works in France at the Grenoble Engineering Center, in the Directory Services Engineering team. Outside work, I love skiing and taking photo

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today