3 ## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
4 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
18 # include other parameters here
22 LOGIN=`echo $FILTER | sed -e 's/.*=\(.*\))/\1/'`
24 PWLINE=`grep -i "^$LOGIN" /etc/passwd`
27 # if we found an entry that matches
29 echo $PWLINE | awk -F: '{
30 printf("dn: cn=%s,%s\n", $1, base);
31 printf("objectclass: top\n");
32 printf("objectclass: person\n");
33 printf("cn: %s\n", $1);
34 printf("cn: %s\n", $5);
35 printf("sn: %s\n", $1);
36 printf("uid: %s\n", $1);