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