Thread View: fj.net.ldap
6 messages
6 total messages
Started by Adam Pordzik
Tue, 21 Sep 2004 13:04
Deleting sinple Values from multiple defines Attributes
Author: Adam Pordzik
Date: Tue, 21 Sep 2004 13:04
Date: Tue, 21 Sep 2004 13:04
25 lines
1159 bytes
1159 bytes
Hello, how can I delete a single Value of an multiple defined Atrribute? e.g. a DN have two 'mail' Atrributes mail: a@b.cd mail: e@f.gh an I want ldapmodify to delete just te first entry 'a@b.cd'. how can I achieve this? $ ldapmodify dn: cn=STUDIO, dc=EXAMPLE, dc=ORG changetype: modify delete: (mail=a@b.cd) wont work. Thanks for Help. A --
Re: Deleting sinple Values from multiple defines Attributes
Author: Sachiko
Date: Sat, 02 Oct 2004 09:47
Date: Sat, 02 Oct 2004 09:47
15 lines
1327 bytes
1327 bytes
can you test this ? delete: <attribute_name> <attribute_name>: value1 i think it works. Adam Pordzik avait �crit le 21/09/2004 : > $ ldapmodify -- Ceci est une signature automatique de MesNews. Site : http://www.mesnews.net
Re: Deleting sinple Values from multiple defines Attributes
Author: Adam Pordzik
Date: Tue, 05 Oct 2004 19:16
Date: Tue, 05 Oct 2004 19:16
34 lines
1504 bytes
1504 bytes
> > Deleting single Values from multiple defines Attributes > can you test this ? > > delete: <attribute_name> > <attribute_name>: value1 > > i think it works. Yes, works fine. But what about modifying multiple definied attrs? attribute: value1 attribute: value2 replace: attribute attribute: ... won't work at all, I think. The only idea is to fetch all attributes find that one i wish to change, chane tihs one and write then all aats/value pairs once again. e.g: attribute: valueA attribute: valueB replace: attribute attribute: valueA attribute: othervalue or is there also another way? A --
Re: Deleting sinple Values from multiple defines Attributes
Author: Sachiko
Date: Wed, 06 Oct 2004 05:39
Date: Wed, 06 Oct 2004 05:39
43 lines
2203 bytes
2203 bytes
Adam Pordzik a expos� le 05/10/2004 : > > Yes, works fine. But what about modifying multiple definied attrs? > > attribute: value1 > attribute: value2 > replace: attribute > attribute: ... > > won't work at all, I think. The only idea is to fetch all attributes > find that one i wish to change, chane tihs one and write then all > aats/value pairs once again. > > e.g: > > attribute: valueA > attribute: valueB > replace: attribute > attribute: valueA > attribute: othervalue > > or is there also another way? > > A the replace action must be tested... on Novell, the replace action is : - delete of value - add the new value ( i don't know if it's the same for iplanet or openLDAP) if your attribute is mandatory, then bang it doesn't work... if your attribute is mandatory and multivalued, then add your values and delete your old values. i think it's better. maybe someone can confirm ??? (sorry for my english) -- Ceci est une signature automatique de MesNews. Site : http://www.mesnews.net
Re: Deleting sinple Values from multiple defines Attributes
Author: Adam Pordzik
Date: Fri, 08 Oct 2004 16:03
Date: Fri, 08 Oct 2004 16:03
38 lines
1833 bytes
1833 bytes
[Replacing values] > > attribute: value1 > > attribute: value2 > > replace: attribute > > attribute: ... > > > > won't work at all, I think. The only idea is to fetch all attributes > > find that one i wish to change, chane tihs one and write then all > > aats/value pairs once again. > > > > e.g: > > > > attribute: valueA > > attribute: valueB > > replace: attribute > > attribute: valueA > > attribute: othervalue > > > > or is there also another way? > > > > A > > the replace action must be tested... on Novell, the replace action is : > - delete of value > - add the new value > if your attribute is mandatory and multivalued, then add your values > and delete your old values. Ok, that's what I thought. But before adding new values I've also to verfiy that this new attr/val combinations does not yet exists. > maybe someone can confirm ??? A --
Re: Deleting sinple Values from multiple defines Attributes
Author: Sachiko
Date: Fri, 08 Oct 2004 18:38
Date: Fri, 08 Oct 2004 18:38
16 lines
1782 bytes
1782 bytes
Adam Pordzik avait �crit le 08/10/2004 : > Ok, that's what I thought. But before adding new values I've also to > verfiy that this new attr/val combinations does not yet exists. > then you should launch a ldapsearch before modify your values. I like LDAP !!! I'm working in a LDAP Team since 2 years and really it's fine ! If you want to have more information about it , feel free to contact me. What directory are you use ? (novell, iplanet, openLdap ?) -- Ceci est une signature automatique de MesNews. Site : http://www.mesnews.net
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads