yes i did, started from there.

i have two new fields in user details and works as expected.
now, based on those new entries i need to make an entry in ldap like this
one:

dn: cn=userid, cn=192.168.1.0, cn=shared_net_name,
cn=config,dc=dhcp,dc=example,dc=com
cn: userid
objectClass: top
objectClass: dhcpHost
objectClass: dhcpOptions
dhcpHWAddress: ethernet 00:a0:78:8e:9e:aa

shared_net_name, dhcpHWAddress - added by users in those new fields.
I was thinking that i can do it on the same plugin file but i don't know
how exactly how to do it
>
>
> On 20.06.2016 18:12, gheorghita.butn...@tuiasi.ro wrote:
>> Hello,
>>
>> I have an small plugin that adds two new fields in user details. Based
>> on
>> those, i need to make an new entry in directory, like i will do with
>> ldapmodify for example ( http://pastebin.com/ZSEA64k8 )
>>
>> basically every time when an user modifies those new attrs i need to
>> make
>> an entry.
>> i have an small function that takes the content of attr that was added
>> by
>> user in webUI. With that function i have all infos i want for my new
>> entry:
>> dn, cn, object classes, attr.
>>
>> how can i add those infos from that function to ldap?
>>
>> Thanks,
>> Gheorghita
>>
>>
> Hello, did you read this document how to extend freeIPA?
>
> https://www.freeipa.org/images/5/5b/FreeIPA33-extending-freeipa.pdf
>


-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Reply via email to