[SAC] LDAP emails

Martin Spott Martin.Spott at mgras.net
Mon Oct 19 03:02:06 PDT 2015


On Mon, Oct 19, 2015 at 11:17:45AM +0200, Martin Spott wrote:

> tracsvn: 2:17:01 ~> [...]

Maybe refine the awk-statement to:

  awk 'BEGIN{FS=":|: "} /^mail:/ {print $2}'

.... just to be on the safe side.

Moreover I found out that the manpage recommends to add quotes and
braces for the search even if it's only one single attribute/value
pair.  Thus, replace

  uid=strk

by

  "(uid=strk)"

If you expect non-ASCII characters in EMail adresses, things might get
a little more complicated  ;-)

	Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------


More information about the Sac mailing list