[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
dhcp.schema attribute dhcpStatements value in filter
- To: <openldap-technical@openldap.org>
- Subject: dhcp.schema attribute dhcpStatements value in filter
- From: "Zeus Panchenko" <zeus@ibs.dn.ua>
- Date: Tue, 01 Apr 2014 17:21:16 +0300
- Cc:
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWxsbGdnZ3U1NQTExN cXFzx8fG/v7+f8hyWAAACXUlEQVQ4jUWSwXYiIRBFi4yyhtjtWpmRdTL0ZC3TJOukDa6Rc+T/P2F eFepwtFvr8upVFVDua8mLWw6La4VIKTuMdAPOebdU55sQs3n/D1xFFPFGVGh4AHKttr5K0bS6g7N ZCge7qpVLB+f1Z2WAj2OKXwIWt/bXpdXSiu8KXbviWkHxF5td9+lg2e3xlI2SCvatK8YLfHyh9lw 15yrad8Va5eXg4Llr7QmAaC+dL9sDt9iad/DX3OKvLMBf+dm0A0QuMrTvYIevSik1IaSVvgjIHt5 lSCG2ynNRpEcBZ8cgDWk+Ns99qzsYYV3MZoppWzGtYlTO9+meG6m/g92iNO9LfQB2JZsMpoJs7QG ku2KtabRK0bZRwDLyBDvwlxTm6ZlP7qyOqLcfqtLexpDSB4M0H3I/PQy1emvjjzgK+A0LmMKl6Lq zlqzh0VGAw440F6MJd8cY0nI7wiF/fVIBGY7UNCAXy6DmfYGCLLI0wtDbVcDUMqtJLmAhLqODQAe riERAxXJ1/QYGpa0ymqyytpKC19MNXHjvFmEsfcHIrncFR4xdbYWgmfEGLCcZokpGbGj1egMR+6M 1BkNX1pDdhPcOXpAnAeLQUwQLYepgQoZVNGS61yaE8CYA7gYAcWKzwGstACY2HTFvvOwk4FXAG/a mKHni/EcA/GkOk7I0IK7UMIf3+SahU8/FJdiE7KcuWdM3MFocUDEEIX9LfJoo4xV5tnNKc3jJuSs SZWgnnhepgU1zN4Hii18yW4RwDX52CXUtk0Hqz6cHOIUkWaX8fDcB+J7y1y2xDHwjv/8Buu8Ekz6 7tXQAAAAASUVORK5CYII=
- Organization: I.B.S. LLC
-----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-----