[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Search filter for numbers
- To: openldap-technical@openldap.org
- Subject: Search filter for numbers
- From: Florian Götz <f.goetz@hs-mannheim.de>
- Date: Wed, 30 Sep 2009 08:48:55 +0200
- Content-disposition: inline
- Organization: Hochschule Mannheim
- User-agent: KMail/1.11.2 (Linux/2.6.28-15-generic; KDE/4.2.2; i686; ; )
Hi everbody,
I tried to create a dynamic group with dynlist and got a problem with a search
filter. I searched the net for a solution, but found nothing that fits.
I want to collect all people thet have a common attribute (attributA=X), but
only people that have a uid that isn´t a number.
We got people with uids similar to their last name (Meier, Müller, Schmidt)
and Users that got a number as uid (123456).
I tried a filter like:
ldap:///ou=users,dc=example,dc=de?uid?sub?(&(attributeA=X)(!(uid=[0-9]*)))
but that doesn´t work.
A solution like:
ldap:///ou=users,dc=example,dc=de?uid?sub?(&(attributeA=X)(!(uid=0*))(!
(uid=1*))(!(uid=2*))(!(uid=3*)).....)
works, but there must be a more elegant way to do this....right?
Best regards,
Florian Götz
----------------------------------------------------------------------------------------
Dipl.-Inf. (FH) Florian Götz
Rechenzentrum Hochschule Mannheim
Paul-Wittsack-Straße 10
68163 Mannheim
Tel: 0621/292-6232
EMail: f.goetz@hs-mannheim.de
Internet: http://www.rz.hs-mannheim.de
-----