|
Re: lug-bg: SLAPD question
- Subject: Re: lug-bg: SLAPD question
- From: Дамян Иванов <divanov@xxxxxxxxxxxxxxx>
- Date: Tue, 20 Sep 2005 14:27:37 +0300
- Delivered-to: lug-bg-list@xxxxxxxxxxxxxxxxxx
- Delivered-to: lug-bg@xxxxxxxxxxxxxxxxxx
- Organization: Кредитреформ България
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sava Chankov wrote:
> Damyan Ivanov wrote:
>> при >= наистина не връща никакви резултати. Може би >= и <= не са
>> позволени в LDAP протокола (само гадая)?.
>
>
> Точно обратното: > и < не са позволени от LDAP. Справка:
> http://www.ietf.org/rfc/rfc2254.txt
> ldapsearch -v -b dc=base,dc=org -x -h ldap 'uidNumber>1001'
>
> би трябвало да върне ldapsearch: ldap_search_ext: Bad search filter (-7)
>
Да, ама не:
$ ldapsearch -v -b dc=base,dc=org -x -h data 'uidNumber>9999'
ldap_initialize( ldap://ldap )
filter: (objectclass=*)
requesting: uidNumber>9999
# extended LDIF
#
# LDAPv3
# base <dc=base,dc=org> with scope sub
# filter: (objectclass=*)
# requesting: uidNumber>9999
#
....много данни....
# search result
search: 2
result: 0 Success
# numResponses: 91
# numEntries: 90
Връща всичко - все едно няма филтър. Странна работа.
дам
- --
Дамян Иванов 0x9725F63B Кредитреформ България
divanov@xxxxxxxxxxxxxxx http://www.creditreform.bg/
тел. +359(2)928-2611, 929-3993 факс +359(2)920-0994
моб. +359(88)856-6067 ICQ 3028500 dam@xxxxxxxxxxxxxxxxxxx/Gaim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDL/IpHqjlqpcl9jsRAmZjAJ4jDI2iUjwUGsUE56RpVbj24gxVIQCffabf
ypngImwmirm0h/ryeI6iSoA=
=4+xY
-----END PGP SIGNATURE-----
|
|
|