Description ldapmodify
imports users to an LDAP server. The input file must be in the LDIF format.
Syntax
# ldapmodify -a -c -d -h <host> -p <port> -D <LDAPadminDN> -p <LDAPadminPassword> -f <exportfilename>.ldif -d
Parameter |
Description |
---|---|
|
Add users. |
|
Continue on errors. |
|
LDAP server IP address. |
|
Debug flag. |
|
LDAP server port number. |
|
LDAP Administrator DN. |
|
LDAP Administrator password. |
|
Specifies the name of the input file. This file must be in the LDIF format. |
Comments You can import the Security Management User Database to an LDAP server by first generating an LDIF file using fwm dbexport
, and then using ldapmodify
.
Before importing, prepare the LDAP directory as follows:
ldapmodify
command:ldapmodify -a -h <host> -p <port> -D <LDAPadminDN> -w <LDAPadminPassword> objectclass: organization o:myOrg |
Example Importing Users using ldapmodify
:
fwm dbexport
using hello1234
as the pre-shared secret.fwm dbexport -l -f ./o_file.ldif -s "o=bigcorp,c=uk" -k hello1234 |
"o=bigcorp,c=uk"
branch.ldapmodify -a -c -h <host> -p <port> -D bindDN -w bindPas -f ./o_file.ldif |