Re: [PHP] LDAP function to add objectClass

2006-08-01 Thread Sameer N Ingole

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



[PHP] LDAP function to add objectClass

2006-07-31 Thread Roger Thomas
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 ?


---
Sign Up for free Email at http://ureg.home.net.my/
---

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