1 2 3 4 5 6 7
#!/bin/sh groupadd -r ldap 2>/dev/null useradd -c "OpenLdap User" -s /sbin/nologin -g ldap \ -m -d /usr/lib/openldap -k /etc/skel -r ldap 2>/dev/null exit 0