Re: LDAP function to add objectClass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roger Thomas wrote:
I have an already working LDAP server. One of my user's ldif looks like:

...
...
sn: Roger Thomas
givenName: Roger Thomas
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: qmailUser
objectClass: hordePerson
o: example.com
ou: people
...
...

I have around 9000 user records. And I would like to add a new objectClass (radiusprofile) to each user record like:
...
...
objectClass: qmailUser
objectClass: hordePerson
objectClass: radiusprofile
...
...

Question: which LDAP function do I need to use to achive this ?
http://php.net/ldap_mod_add

But this function need the DN as parameter, so I guess you will have to find a way to iterate through all the entries and pass DN of each entry to the function.
**

--
Sameer N. Ingole
http://weblogic.noroot.org/
---
Better to light one candle than to curse the darkness.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux