[389-users] Base plugin

Rich Megginson rmeggins at redhat.com
Thu Aug 16 14:18:36 UTC 2012


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 Grzemba<grzemba at 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<okelet at 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 at lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>>
>> --
>> Carsten Grzemba
>>
>> --
>> 389 users mailing list
>> 389-users at lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users




More information about the 389-users mailing list