From: Roland S. <rol...@ep...> - 2001-04-26 13:45:54
|
Hi, how can I delete a referral from an LDAP tree? I'm preparing an $entry and update: ----- $entry = Net::LDAP::Entry->new; $entry->dn("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics"); $entry->changetype("delete"); $entry->update($ldap); ----- The result is: return code: 10, message: Referral received Thank you! bye, -- Roland Stigge Epigenomics AG Kastanienallee 24 www.epigenomics.com 10435 Berlin |
From: Chris R. <chr...@me...> - 2001-04-26 14:47:33
|
Roland Stigge <rol...@ep...> wrote: > Hi, > > how can I delete a referral from an LDAP tree? > > I'm preparing an $entry and update: > ----- > $entry = Net::LDAP::Entry->new; > $entry->dn("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics"); > $entry->changetype("delete"); > $entry->update($ldap); > ----- > > The result is: > return code: 10, message: Referral received :-) I don't know if the representation of knowledge (which is used when returning a referral/continuation reference) over LDAP is standardized or not. (It doesn't seem to be.) As it is therefore a proprietrary feature, you will have to check your server's documentation. You might find that you need to use a control. If there is a control called something like managedsait, that's the one you should probably use. Cheers, Chris |
From: Roland S. <rol...@ep...> - 2001-04-26 15:20:16
|
Hi, Chris Ridd wrote: > > how can I delete a referral from an LDAP tree? > > > > I'm preparing an $entry and update: > > ----- > > $entry = Net::LDAP::Entry->new; > > $entry->dn("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics"); > > $entry->changetype("delete"); > > $entry->update($ldap); > > ----- > > > > The result is: > > return code: 10, message: Referral received > > :-) > > I don't know if the representation of knowledge (which is used when > returning a referral/continuation reference) over LDAP is standardized or > not. (It doesn't seem to be.) > > As it is therefore a proprietrary feature, you will have to check your > server's documentation. You might find that you need to use a control. If > there is a control called something like managedsait, that's the one you > should probably use. Using OpenLDAP 2.0.7 now, I know that the client tools ldapmodify and ldapdelete use the Control "ManageDsaIT". I tried this one, but didn't succeed: ----- $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", control => {type => "ManageDsaIT", value => 1} ); ----- Any hint? Thanks in advance! bye, -- Roland Stigge Epigenomics AG Kastanienallee 24 www.epigenomics.com 10435 Berlin |
From: Graham B. <gb...@po...> - 2001-04-26 15:32:48
|
On Thu, Apr 26, 2001 at 05:20:08PM +0200, Roland Stigge wrote: > > Using OpenLDAP 2.0.7 now, I know that the client tools ldapmodify and > ldapdelete use the Control "ManageDsaIT". I tried this one, but didn't > succeed: > ----- > $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", > control => {type => "ManageDsaIT", value => 1} ); type need to be an OID Graham. |
From: Roland S. <rol...@ep...> - 2001-04-26 15:50:31
|
Graham Barr wrote: > > On Thu, Apr 26, 2001 at 05:20:08PM +0200, Roland Stigge wrote: > > > > Using OpenLDAP 2.0.7 now, I know that the client tools ldapmodify and > > ldapdelete use the Control "ManageDsaIT". I tried this one, but didn't > > succeed: > > ----- > > $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", > > control => {type => "ManageDsaIT", value => 1} ); > > type need to be an OID Tried: $mesg = $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", control => {type => "2.16.16.840.1.113730.3.4.2", value => 1} ); But same error. Could you please give me any hint to a solution or documentation? Thanks. bye, -- Roland Stigge Epigenomics AG Kastanienallee 24 www.epigenomics.com 10435 Berlin |
From: Kurt D. Z. <Ku...@Op...> - 2001-04-26 16:04:41
|
At 08:31 AM 4/26/01, Graham Barr wrote: >On Thu, Apr 26, 2001 at 05:20:08PM +0200, Roland Stigge wrote: >> >> Using OpenLDAP 2.0.7 now, I know that the client tools ldapmodify and >> ldapdelete use the Control "ManageDsaIT". I tried this one, but didn't >> succeed: >> ----- >> $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", >> control => {type => "ManageDsaIT", value => 1} ); > >type need to be an OID and no value. |
From: Roland S. <rol...@ep...> - 2001-04-26 16:11:56
|
"Kurt D. Zeilenga" wrote: > > At 08:31 AM 4/26/01, Graham Barr wrote: > >On Thu, Apr 26, 2001 at 05:20:08PM +0200, Roland Stigge wrote: > >> > >> Using OpenLDAP 2.0.7 now, I know that the client tools ldapmodify and > >> ldapdelete use the Control "ManageDsaIT". I tried this one, but didn't > >> succeed: > >> ----- > >> $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", > >> control => {type => "ManageDsaIT", value => 1} ); > > > >type need to be an OID > > and no value. ----- $mesg = $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", control => {type => "2.16.16.840.1.113730.3.4.2"}); ----- (perl-ldap 0.23) produces: code: 10, message: Referral received It is the right OID, right? ;) bye, -- Roland Stigge Epigenomics AG Kastanienallee 24 www.epigenomics.com 10435 Berlin |
From: Kurt D. Z. <Ku...@Op...> - 2001-04-26 16:39:38
|
At 09:11 AM 4/26/01, Roland Stigge wrote: >"Kurt D. Zeilenga" wrote: >> >> At 08:31 AM 4/26/01, Graham Barr wrote: >> >On Thu, Apr 26, 2001 at 05:20:08PM +0200, Roland Stigge wrote: >> >> >> >> Using OpenLDAP 2.0.7 now, I know that the client tools ldapmodify and >> >> ldapdelete use the Control "ManageDsaIT". I tried this one, but didn't >> >> succeed: >> >> ----- >> >> $ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", >> >> control => {type => "ManageDsaIT", value => 1} ); >> > >> >type need to be an OID >> >> and no value. > >----- >$mesg = >$ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", > control => {type => "2.16.16.840.1.113730.3.4.2"}); >----- >(perl-ldap 0.23) >produces: > >code: 10, message: Referral received > >It is the right OID, right? ;) Yes. See http://search.ietf.org/internet-drafts/draft-zeilenga-ldap-namedref-03.txt for details on Named Subordinate Referrals in LDAP. (OpenLDAP 2.0.7 implements an earlier draft, but it should be close enough in regards to this usage). I also suggest you use the OpenLDAP provided ldapdelete(1) with -MM to determine behavior of OpenLDAP. If you have issue with this behavior, start a thread on the OpenLDAP-software mailing list <http://www.openldap.org/lists/>. Kurt |
From: Roland S. <rol...@ep...> - 2001-04-26 16:53:05
|
Hi, > >$ldap->delete("ref=\"ldap://asser/c=us,o=epigenomics\",o=epigenomics", > > control => {type => "2.16.16.840.1.113730.3.4.2"}); > >It is the right OID, right? ;) > > Yes. No! > See http://search.ietf.org/internet-drafts/draft-zeilenga-ldap-namedref-03.txt Thanks for the reference, I got the right OID: 2.16.840.1.113730.3.4.2 :-) The wrong one I got from an article searched via OpenLDAP Website Search and didn't verify it. So sorry, and thanks everybody for the help! Have a nice day... bye, -- Roland Stigge Epigenomics AG Kastanienallee 24 www.epigenomics.com 10435 Berlin |