[Toolserver-l] Set your default license
River Tarnell
river.tarnell at wikimedia.de
Mon May 24 17:38:28 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mike.lifeguard:
> How would someone check the default license a user set if they needed to?
The following one-liner might also be interesting:
ldapsearch -h ldap -b o=unix,o=toolserver \
'(&(objectclass=posixAccount)(tsDefaultLicense=*))' tsDefaultLicense \
| sed -n '/^dn:/ {
N;
s/^dn: uid=\([^,]*\).*tsDefaultLicense: \(.*\)/\1:\2/;
p;
}' | nawk -F: '{ printf("%-16s %s\n", $1, $2); }'
- river.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (HP-UX)
iEYEARECAAYFAkv6uZQACgkQIXd7fCuc5vLLlQCgraGtTGyusBsC7ExoPSa351SM
oHgAmQEGCDfHKjPi9yqe9nkADqu4hqjw
=TCZM
-----END PGP SIGNATURE-----
More information about the Toolserver-l
mailing list