Thanks for the pointers. After digging in a little deeper, a couple of
other questions came up.
It seems like the post-op plugin has a parm block populated for it
that has enough information in it to know which entry is being touched
(my plugin is an add post-op, so for me it tells my plugin which entry
was added).
I actually need my post-op plugin to operate on both the entry being
added, and another different entry. For example, the entry being added
may look like uid=someuser,ou=principals,ou=trading,o=some.com. I do
need to change an attribute about this entry, and I've got my plugin
to successfully do this. However, I also need the plugin to operate on
the second entry, which would look like
uid=idnbr,ou=trading,o=some.com.
For the second entry, I need to fetch an attribute value for the
entry, increment it by 1, and save it back.
Is all of this possible with the LDAP API suite? I've gone through the
plugin developer's guide and nothing seems to intuitively work in this
fashion...
TIA,
Adam
Rich Megginson <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Adam Carroll wrote:
>
> > I need to add some form of an object to my directory server that will act like a
>sequence number. Basically, every time a user is added, the number needs to get
>implemented by 1. So far, the best idea I've come up with
> > is to have a plugin serve as a post-op plugin and handle the incrementing.
>
> That is the usual solution.
>
> > I was wondering if anybody else had ever had the need to do this and what
>solutions were used. Also, does Netscape have a native sequence data type?
>
> No, there is nothing like an SQL sequence data type.
>
> > Any help is appreciated -
> >
> > Adam