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

dhcp.schema attribute dhcpStatements value in filter



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

I configured my isc-dhcpd servers to work with openldap, all works

now when I want to find dn for some definite MAC or IP, I am unable to
do that

please, help to understand how can I ldapsearch by attribute
dhcpStatements values?

in dhcp.schema it is written:
- ---[ quotation start ]-------------------------------------------
...
attributetype ( 2.16.840.1.113719.1.203.4.3 
        NAME 'dhcpStatements' 
        EQUALITY caseIgnoreIA5Match
        DESC 'Flexible storage for specific data depending on what
              object this exists in. Like conditional statements, server
              parameters, etc. This allows the standard to evolve
              without needing to adjust the schema.'
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
...
- ---[ quotation end   ]-------------------------------------------

so, when I use filter "(&(objectClass=dhcpHost)(dhcpStatements=*))"


I successfully receive all objects


but lets say I need to find this object:
- ---[ quotation start ]-------------------------------------------
dn: cn=ap01,cn=10.0.0.0,cn=officeXXX DHCP Config,ou=officeXXX,ou=DHCP,
 dc=allstuff
cn: ap01
objectClass: top
objectClass: dhcpHost
dhcpHWAddress: ethernet 20:cf:30:88:5d:18
dhcpStatements: fixed-address 10.0.0.222
- ---[ quotation end   ]-------------------------------------------

I use filter:
"(&(objectClass=dhcpHost)(dhcpStatements=fixed-address 10.0.0.222))"

and receive empty result ...

it is the same picture for anything except dhcpStatements=* ...

so, how is it correct to write the filter to get all objects with IP
like 10.0.0.2* ?

- -- 
Zeus V. Panchenko				jid:zeus@im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlM6y1sACgkQr3jpPg/3oyqPvQCgq6w8K53fw+6zrsSLbI72sbMR
5k8AoOh0wWlYmeQyyNKfngyMQrP3TXrt
=KYZt
-----END PGP SIGNATURE-----