Adding New Root Suffix To 389 Server

Home » CentOS » Adding New Root Suffix To 389 Server
CentOS No Comments

My apologies if this is off-topic…

On a CentOS6.4 system I installed 389 server from EPEL. It seems to work well enough. However I’m trying to script things, rather than do it via the GUI. So, for example, I want to add a new suffix:

#!/bin/ksh -p

pswd=$(cat ~/passwd)

echo “dn: cn=example,cn=ldbm database,cn=plugins,cn=config
changetype: add
objectclass: extensibleObject
objectclass: nsBackendInstance
nsslapd-suffix: dc=example,dc=com

dn: cn