[Freeipa-users] ldap entry from an plugin

gheorghita.butnaru at tuiasi.ro gheorghita.butnaru at tuiasi.ro
Mon Jun 20 17:50:33 UTC 2016


i like that plugin but, for my purpose, i just need something simple:

1. two options for users to select their wanted networks and to add their
mac addresses ( done already, fully functional).
2. with that input i want to make an entry , like i sad, for dhcp server
important to say is that i already have that input in the corresponding
attr in ldap but i want to build an special entry for dhcp like in my next
example

for example if an user selects network Net1 and Mac address
aa:aa:aa:aa:aa:aa i will need something like this in directory:

dn: cn=userid, cn=192.168.1.0, cn=Net1,
cn=config,dc=dhcp,dc=example,dc=com
cn: userid
objectClass: top
objectClass: dhcpHost
objectClass: dhcpOptions
dhcpHWAddress: ethernet aa:aa:aa:aa:aa:aa

Network IP is unique and correspond to that network
everything else that i need for an working dhcp is already in directory.

> On (20/06/16 20:20), gheorghita.butnaru at tuiasi.ro wrote:
>>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
>
> If you want to enhace FreeIPA with DHCP
> the I will recommend you to look into freeipa-user archives.
> https://www.redhat.com/archives/freeipa-users/2016-May/msg00211.html
> https://github.com/jefferyharrell/IPA-dhcp
>
> LS
>





More information about the Freeipa-users mailing list