Hi,
I was just wondering if there is any command like ldapadd/ldapmodify or any configuration parameter in this commands which will add an entry in database if its not present like ldapadd and modify that entry if its there in database like ldapmodify??
Regards, Mukim Pathan
mukim pathan wrote:
Hi,
I was just wondering if there is any command like ldapadd/ldapmodify or any configuration parameter in this commands which will add an entry in database if its not present like ldapadd and modify that entry if its there in database like ldapmodify??
Not a command, but the addpartial overlay. When configured, it turns adds into modify if the entry being added already exists but is different. You can find it in contrib/slapd-modules/addpartial/.
There's no provisions for building it with OpenLDAP; you need to manually build it as a run-time loadable module.
Probably, it should be improved a little bit. For example, its activation could require the presence of a control in the request. It could return a control response indicating whether the entry was added, modified or left as is.
p.
openldap-technical@openldap.org