On Tue, 5 Aug 2014, Roland Gruber wrote:
Hi Carl,
you can set an additional LDAP filter in your LAM server profile. See
account types and then advanced settings.
This filter works:
(|(\!(sambaKickoffTime=*))(sambaKickofftime>=1407262765))
But how do I make the filter dynamic? That is, is there a %TODAY%
substitution (similar to %USER%) or some other method to put today's date
into the filter? This does not work:
(|(\!(sambaKickoffTime=*))(sambaKickofftime>=`date +%s`))
Thanks,
Carl
-------- Ursprüngliche Nachricht --------
Von: "Carl G. Riches" <[email protected]>
Datum:05.08.2014 19:38 (GMT+01:00)
An: [email protected]
Betreff: [Lam-public] How to filter user list?
We are in the process of setting up a read-only server profile where our
users can view the user OU. We would like to filter out all entries with
expired passwords (or with expired Samba accounts). We can exclude those
entries from a command-line search. For example:
ldapsearch -LLL -x -w secret -h ldap1 \
-D "cn=Directory Manager" -b 'ou=People,dc=my,dc=domain,dc=com' \
'(|(!(shadowExpire=*))(shadowExpire>16287))'
ldapsearch -LLL -x -w secret -h ldap1 \
-D "cn=Directory Manager" -b 'ou=People,dc=my,dc=domain,dc=com' \
'(|(!(sambaKickoffTime=*))(sambaKickofftime>=2014-08-05))'
We are using LAMpro 4.6. I've looked through the on-line documentation
and skimmed through the code but can't figure this out. Is there a way to
do this?
Thanks,
Carl
Carl G. Riches
IT Director
Department of Biostatistics
Box 357232 voice: 206-616-2725
University of Washington fax: 206-543-3286
Seattle, WA 98195-7232 internet: [email protected]
---------------------------------------------------------------------------
---
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktr
k
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public