You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@directory.apache.org by Frank Crow <fj...@gmail.com> on 2014/11/12 13:55:57 UTC

modify extension - should be "modify-increment extension"

Hello all,

Sorry for the duplicate post.   It turns out that my work email server
filters mailing lists.   I wouldn't have even known if I hadn't checked the
archives this morning.   Please disregard the previous thread "modify
extension".   I also realized that I was asking the wrong question after
Kiran replied.

I would like to implement the "modify-increment" extension (RFC 4525) using
the Apache LDAP API.   Can anyone give me pointers on how to do that?

Essentially, I'm trying to do almost exactly the example in the RFC but
with a couple of different counters related to user management.   The
example from the RFC is:

# increment uidNumber
dn: cn=max-assigned uidNumber,dc=example,dc=com
changetype: modify
uidNumber: 1


Thanks,
-- 
Frank

Re: modify extension - should be "modify-increment extension"

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/11/14 16:31, Frank Crow a écrit :
> Isn't there a way to do that without modifying the Apache LDAP API?

No.


Re: modify extension - should be "modify-increment extension"

Posted by Frank Crow <fj...@gmail.com>.
Isn't there a way to do that without modifying the Apache LDAP API?

Thanks,
Frank


On Wed, Nov 12, 2014 at 8:52 AM, Emmanuel Lécharny <el...@gmail.com>
wrote:

> Le 12/11/14 14:32, Frank Crow a écrit :
> > Can you give me any specific details on how to modify the
> > ModifyRequest/ModificationOperation/StoreOperationType?
>
> It's just a amtter of adding a new value in the enum, and to update the
> check done in StoreOperationType (and in your case, it's not even
> necessary).
>
>


-- 
Frank

Re: modify extension - should be "modify-increment extension"

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/11/14 14:32, Frank Crow a écrit :
> Can you give me any specific details on how to modify the
> ModifyRequest/ModificationOperation/StoreOperationType? 

It's just a amtter of adding a new value in the enum, and to update the
check done in StoreOperationType (and in your case, it's not even
necessary).


Re: modify extension - should be "modify-increment extension"

Posted by Frank Crow <fj...@gmail.com>.
Can you give me any specific details on how to modify the
ModifyRequest/ModificationOperation/StoreOperationType?   I don't think
that I need #2 and, while I know how to do #3, I will only ever be using
this code on a system running OpenLDAP which does support the extension out
of the box.

Thanks,
Frank


On Wed, Nov 12, 2014 at 8:24 AM, Emmanuel Lécharny <el...@gmail.com>
wrote:

> Le 12/11/14 13:55, Frank Crow a écrit :
> > Hello all,
> >
> > Sorry for the duplicate post.   It turns out that my work email server
> > filters mailing lists.   I wouldn't have even known if I hadn't checked
> the
> > archives this morning.   Please disregard the previous thread "modify
> > extension".   I also realized that I was asking the wrong question after
> > Kiran replied.
> >
> > I would like to implement the "modify-increment" extension (RFC 4525)
> using
> > the Apache LDAP API.   Can anyone give me pointers on how to do that?
> There are three aspects to deal with :
>
> 1) The ModifyRequest has to be modified. More specifcially, the
> ModificationOperation class, and the StoreOperationType class.
> 2) The Ldif parser has to be modified
> 3) The API should check if the server support the operation before
> sending the request.
>
> Not that complex...
>
>
>


-- 
Frank

Re: modify extension - should be "modify-increment extension"

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/11/14 13:55, Frank Crow a écrit :
> Hello all,
>
> Sorry for the duplicate post.   It turns out that my work email server
> filters mailing lists.   I wouldn't have even known if I hadn't checked the
> archives this morning.   Please disregard the previous thread "modify
> extension".   I also realized that I was asking the wrong question after
> Kiran replied.
>
> I would like to implement the "modify-increment" extension (RFC 4525) using
> the Apache LDAP API.   Can anyone give me pointers on how to do that?
There are three aspects to deal with :

1) The ModifyRequest has to be modified. More specifcially, the
ModificationOperation class, and the StoreOperationType class.
2) The Ldif parser has to be modified
3) The API should check if the server support the operation before
sending the request.

Not that complex...