misc_scripts/ldap_basic/ldapadd.sh

3 lines
207 B
Bash
Raw Permalink Normal View History

2024-10-28 05:23:24 +00:00
ldapadd -D cn=ldapadmin,dc=example,dc=com -w Y0ur4dm!nPwd -H ldap://192.12.34.123/ -f $1
# This script takes one argument - the /path/filenam.ldif of an ldif file.
# Refer the documentations for ldif syntax.