[Date Prev][Date Next] [Chronological] [Thread] [Top]

problem with ldapsearch



hello !

we use postfix-courier-openldap system and i can't understand why ldpasearch works this way :

skraft@mail:/www/mailadmin ldapsearch -LLL -x -w $PASS -D "cn=root,dc=rgs,dc=ru" -h localhost -b
"ou=virtual,ou=system,dc=rgs,dc=ru" '(&(objectClass=RGSvirtualAliasMaps)(RGSpostfixKey=*))'

dn: RGSpostfixKey=a1@rgs.ru,ou=virtual,ou=system,dc=rgs,dc=ru
objectClass: RGSvirtualAliasMaps
RGSpostfixKey: a1@rgs.ru
RGSpostfixVal: a2@rgs.ru; a3@rgs.ru

dn: RGSpostfixKey=a4@rgs.ru,ou=virtual,ou=system,dc=rgs,dc=ru
objectClass: RGSvirtualAliasMaps
RGSpostfixKey: a4@rgs.ru
RGSpostfixVal: a1@rgs.ru; a4@rgs.ru

dn: RGSpostfixKey=a5@rgs.ru,ou=virtual,ou=system,dc=rgs,dc=ru
objectClass: RGSvirtualAliasMaps
RGSpostfixKey: a5@rgs.ru
RGSpostfixVal: a4@rgs.ru; a1@rgs.ru

dn: RGSpostfixKey=a7@rgs.ru,ou=virtual,ou=system,dc=rgs,dc=ru
objectClass: RGSvirtualAliasMaps
RGSpostfixKey: a7@rgs.ru
RGSpostfixVal: a4@rgs.ru
--

skraft@mail:/www/mailadmin ldapsearch -LLL -x -w $PASS -D "cn=root,dc=rgs,dc=ru" -h localhost -b
"ou=virtual,ou=system,dc=rgs,dc=ru" '(&(objectClass=RGSvirtualAliasMaps)(RGSpostfixKey=a1@rgs.ru))'

dn: RGSpostfixKey=a1@rgs.ru,ou=virtual,ou=system,dc=rgs,dc=ru
objectClass: RGSvirtualAliasMaps
RGSpostfixKey: a1@rgs.ru
RGSpostfixVal: a2@rgs.ru; a3@rgs.ru

skraft@mail:/www/mailadmin ldapsearch -LLL -x -w $PASS -D "cn=root,dc=rgs,dc=ru" -h localhost -b
"ou=virtual,ou=system,dc=rgs,dc=ru" '(&(objectClass=RGSvirtualAliasMaps)(RGSpostfixKey=a4@rgs.ru))'

dn: RGSpostfixKey=a4@rgs.ru,ou=virtual,ou=system,dc=rgs,dc=ru
objectClass: RGSvirtualAliasMaps
RGSpostfixKey: a4@rgs.ru
RGSpostfixVal: a1@rgs.ru; a4@rgs.ru

dn: RGSpostfixKey=a7@rgs.ru,ou=virtual,ou=system,dc=rgs,dc=ru
objectClass: RGSvirtualAliasMaps
RGSpostfixKey: a7@rgs.ru
RGSpostfixVal: a4@rgs.ru

here i hoped to get only "RGSpostfixKey: a4@rgs.ru"

openldap 2.1.26-2, linux


--
Best regards,

Serg V.Kravchenko, RosGosStrah,
Department of Information Technologies
Chief of the Software Support division
mailto:skraft@rgs.ru  http://www.rgs.ru
phone personal: (095) 518 9630 #1115
phone: (095) 518 9624 fax: (095) 518 9628
Moscow, B.Ordinka, 40, building 3.