Hi, i want to create dynamic lists of ipHostnumber. This is the dynamic Group entry
,----[ dynamic Group entry ] | dn: cn=dynamicHosts,o=avci,c=de | cn: dynamicGroup | memberURL: ldap:///ou=benchmark,o=avci,c=de?ipHostNumber?sub?(objectclass=ipHost) | objectClass: groupOfURLs `----
The relevant parts of slapd.conf are
,----[ slapd.conf ] | include /etc/openldap/schema/dyngroup.schema | modulepath /opt/openldap/libexec/openldap | moduleload dynlist.la | database bdb | suffix o=avci,c=de | overlay dynlist | dynlist-attrset groupOfURLs memberURL `----
A ldapsearch -x -H ldap://localhost -b "o=avci,c=de" -s one \ "(objectclass=groupOfUrls)" only presents the DN, that is
member: host=abc,ou=benchmark,o=avci,c=de member: host=cde,ou=benchmark,o=avci,c=de ...
but I would like a presentation of attribut ipHostNumber like
member: ipHostNumber=192.168.100.31 member: ipHostNumber=192.168.100.32
The slapd.conf is based on the example in man slapo-dynlist(5), which says "This example collects all the email addresses of a database into a sin- gle entry;..."
What is wrong with my setup?
-Dieter
Dieter Kluenter wrote:
Hi, i want to create dynamic lists of ipHostnumber. This is the dynamic Group entry
,----[ dynamic Group entry ] | dn: cn=dynamicHosts,o=avci,c=de | cn: dynamicGroup | memberURL: ldap:///ou=benchmark,o=avci,c=de?ipHostNumber?sub?(objectclass=ipHost) | objectClass: groupOfURLs
Looks fine...
`----
The relevant parts of slapd.conf are
,----[ slapd.conf ] | include /etc/openldap/schema/dyngroup.schema | modulepath /opt/openldap/libexec/openldap | moduleload dynlist.la | database bdb | suffix o=avci,c=de | overlay dynlist | dynlist-attrset groupOfURLs memberURL
... looks fine.
`----
A ldapsearch -x -H ldap://localhost -b "o=avci,c=de" -s one \ "(objectclass=groupOfUrls)" only presents the DN, that is
member: host=abc,ou=benchmark,o=avci,c=de member: host=cde,ou=benchmark,o=avci,c=de
This should only happen if you use "member" as the fourth argument to dynlist-attrset, which specifies what should be the attribute that lists the DNs of the entries matching the memberURL searches.
...
but I would like a presentation of attribut ipHostNumber like
member: ipHostNumber=192.168.100.31 member: ipHostNumber=192.168.100.32
You should rather get something like
ipHostNumber: 192.168.100.31 ipHostNumber: 192.168.100.32
The slapd.conf is based on the example in man slapo-dynlist(5), which says "This example collects all the email addresses of a database into a sin- gle entry;..."
What is wrong with my setup?
Dunno; can you re-check things? It's working just fine here.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.n.c. Via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ------------------------------------------ Office: +39.02.23998309 Mobile: +39.333.4963172 Email: pierangelo.masarati@sys-net.it ------------------------------------------
Hi,
Pierangelo Masarati ando@sys-net.it writes:
Dieter Kluenter wrote:
Hi, i want to create dynamic lists of ipHostnumber.
[...]
but I would like a presentation of attribut ipHostNumber like
member: ipHostNumber=192.168.100.31 member: ipHostNumber=192.168.100.32
You should rather get something like
ipHostNumber: 192.168.100.31 ipHostNumber: 192.168.100.32
Sorry, my fault, mea culpa. I modified slapd.conf but forgot, that I created cn=config, so I did not modify olcOverlay={0}dynlist.ldif on the fly. Now it is working as expected.
-Dieter
openldap-software@openldap.org