[SAC] LDAP emails

Sandro Santilli strk at keybit.net
Mon Oct 19 03:26:37 PDT 2015


On Mon, Oct 19, 2015 at 12:13:57PM +0200, Sandro Santilli wrote:

> Thanks, updated with:
> 
> /usr/bin/ldapsearch -H ldaps://ldap.osgeo.org/ \
>   -b dc=osgeo,dc=org -x \
>   "(uid=${author})" mail \
>   | grep '^mail:' | cut -d: -f2
> 
> > If you expect non-ASCII characters in EMail adresses, things might get
> > a little more complicated  ;-)
> 
> Not in the email part. I actually expect them in the "cn" field
> which seem to be the real name (Common Name?) but for now that
> field is not used by the script

Actually I've now further updated it to use your awk command
(to properly strip spaces) and also added Real Name, which is
known to contain UTF8 characters. Is that a problem ?

--strk;


More information about the Sac mailing list