Re: [389-users] Base plugin

2012-08-16 Thread Juan Asensio Sánchez
Hi

I would like to intercept all modifications/adds in the server, and
then check if some of the modified attributes are what I want. For
each of them, if found, I need to generate (or overwrite) other
attribute with an equivalent value. An example; if I detect that the
attribute nsAccountLock is set/modified/deleted, I would also modify
the attribute sambaAcctFlags to activate/deactivate the Samba account,
or the mailUserStatus to activeate/deactivate the mail account. Or If
I detect a achange in the passwordExpirationTime, set also the Samba
equivalent attribute (not sure which should be).

Also a great feature, very requested, is to detect password change (in
clear, of course), and then generate the equivalent
sambaNT/LMPassword...

Regards.


2012/8/15 Carsten Grzemba grze...@contac-dt.de:
 Hi,

 can you give an example of what you want to do in detail?

 Regards

 Am 14.08.12, schrieb Juan Asensio Sánchez oke...@gmail.com:

 Hi

 I would like to make a plugin to synchronize some attributes from its
 value in Directory to the equivalent in Samba. The plugin should
 detect the changes in some attributtes, and then calculate and modify
 the equivalent value of the Samba ones. Is there any plugin in the
 standard packages, or has anyone done something similar, to take it as
 a base?

 Regards and thanks in advance.
 --
 389 users mailing list
 389-users@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/389-users

 --
 Carsten Grzemba

 --
 389 users mailing list
 389-users@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Re: [389-users] Base plugin

2012-08-16 Thread Rich Megginson

On 08/16/2012 06:06 AM, Juan Asensio Sánchez wrote:

Hi

I would like to intercept all modifications/adds in the server, and
then check if some of the modified attributes are what I want. For
each of them, if found, I need to generate (or overwrite) other
attribute with an equivalent value. An example; if I detect that the
attribute nsAccountLock is set/modified/deleted, I would also modify
the attribute sambaAcctFlags to activate/deactivate the Samba account,
or the mailUserStatus to activeate/deactivate the mail account. Or If
I detect a achange in the passwordExpirationTime, set also the Samba
equivalent attribute (not sure which should be).


Many of the plugins in 389 do something related to this, but nothing 
does exactly what you want.  But you could take e.g. the automember 
plugin as a starting point.




Also a great feature, very requested, is to detect password change (in
clear, of course), and then generate the equivalent
sambaNT/LMPassword...


There is an IPA plugin that does this - but it also does kerberos as 
well.  You could probably port this to plain 389.




Regards.


2012/8/15 Carsten Grzembagrze...@contac-dt.de:

Hi,

can you give an example of what you want to do in detail?

Regards

Am 14.08.12, schrieb Juan Asensio Sánchezoke...@gmail.com:

Hi

I would like to make a plugin to synchronize some attributes from its
value in Directory to the equivalent in Samba. The plugin should
detect the changes in some attributtes, and then calculate and modify
the equivalent value of the Samba ones. Is there any plugin in the
standard packages, or has anyone done something similar, to take it as
a base?

Regards and thanks in advance.
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

--
Carsten Grzemba

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Re: [389-users] Base plugin

2012-08-15 Thread Carsten Grzemba
Hi,

can you give an example of what you want to do in detail?

Regards

Am 14.08.12, schrieb Juan Asensio Sánchez  oke...@gmail.com:
 Hi
 
 I would like to make a plugin to synchronize some attributes from its
 value in Directory to the equivalent in Samba. The plugin should
 detect the changes in some attributtes, and then calculate and modify
 the equivalent value of the Samba ones. Is there any plugin in the
 standard packages, or has anyone done something similar, to take it as
 a base?
 
 Regards and thanks in advance.
 --
 389 users mailing list
 389-users@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/389-users
 
--
Carsten Grzemba
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users