Hi!
Trying to delete the result of an LDAP search, I have a problem:
Using
ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b "dc=services,dc=net,$DIT_BASE" \ -s one -z $SIZE_LIMIT '(objectClass=ipService)' dn | awk ' /^dn: / { # sub(/^dn: /, ""); print; } ' | ldapdelete -v -Y EXTERNAL -H ldapi:/// I get "deleting entry "dn: cn=1ci-smcs@3091/tcp,dc=services,dc=net,..." ldap_delete: Invalid DN syntax (34) additional info: invalid DN"
And when I remove the "dn " in front I get "ldap_delete: Server is unwilling to perform (53) additional info: no global superior knowledge"
What do I miss?
Kind regards, Ulrich Windl
Just fort he records: https://superuser.com/a/1904108/964771
Kind regards, Ulrich Windl
From: Windl, Ulrich u.windl@ukr.de Sent: Thursday, June 5, 2025 1:18 PM To: openldap-technical@openldap.org Subject: [EXT] failure when trying to delete an entry found
Hi!
Trying to delete the result of an LDAP search, I have a problem:
Using
ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b "dc=services,dc=net,$DIT_BASE" \ -s one -z $SIZE_LIMIT '(objectClass=ipService)' dn | awk ' /^dn: / { # sub(/^dn: /, ""); print; } ' | ldapdelete -v -Y EXTERNAL -H ldapi:/// I get "deleting entry "dn: cn=1ci-smcs@3091/tcp,dc=services,dc=net,..." ldap_delete: Invalid DN syntax (34) additional info: invalid DN"
And when I remove the "dn " in front I get "ldap_delete: Server is unwilling to perform (53) additional info: no global superior knowledge"
What do I miss?
Kind regards, Ulrich Windl
openldap-technical@openldap.org