LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   phpldapadmin - create inetOrgPerson, posixAccount and posixGroup at the same time (https://www.linuxquestions.org/questions/linux-newbie-8/phpldapadmin-create-inetorgperson-posixaccount-and-posixgroup-at-the-same-time-4175483564/)

lqmp 11-06-2013 04:25 AM

phpldapadmin - create inetOrgPerson, posixAccount and posixGroup at the same time
 
Hi all!

I'm working with phpldapadmin and want to make it easier to add a person to the LDAP database. When adding a person, the following has to be creates:
- inetOrgPerson
- posixAccount
- posixGroup with the same name as posixAccount and the posixAccount directly added to the posixGroup.

The combination of inetOrgPerson and posixAccount isn't the problem, it looks like the problem is the requirement of creating the posixGroup and adding the posixAccount to it.

Unfortunatly I couldn't find a solution to this.
Is there anyone who tried this before and can it be done?

Thank you for your answers!

lqmp 11-06-2013 11:51 AM

Alright, I tried accomplishing this but I don't think it will be easy :)
It looks like this isn't possible in one action in LDAP, and the standard scripts in phpLDAPadmin don't seem to support it either. But maybe it is possible with a hook in phpLDAPadmin.

Is there anyone with experience writing hooks for phpLDAPadmin?
There is almost no information available on this.


All times are GMT -5. The time now is 11:52 PM.