ldap-admin/bin/commit

12 lines
235 B
Bash
Executable File

#!/bin/bash
#% commit
#% Attempt to commit the buffer to the LDAP server using your credentials.
. $LIB_DIR/common.sh
ldapmodify -x -ZZ -W -D $ME -f $LDIF_BASE
if [ $? -eq 0 ]; then
discard
else
echo "Modification failed!" >&2
fi