#!/bin/bash # Run ldapvi with the current $USERNAME if [ -z "$USER" ] ; then echo "You need to check your environment, \$USER is missing !" exit 1 fi ldapvi -Z --tls never -h 'ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock' -D 'uid='$USER',ou=recruiters,ou=devs,dc=gentoo,dc=org'