Update telephonenumber whith adsi ldap 
Author Message
 Update telephonenumber whith adsi ldap

Hi,

I search on Visual Basic how when i connect in admin
i can update all records of others user in a ldap directory.

'Connexion en tant qu'admin
    ADsPath = "LDAP://100.200.1.101:289/o=titi.com"
    dn_usr = "uid=admin, o=titi.com"
    Set dso = GetObject("LDAP:")
    Set comp = dso.OpenDSObject(ADsPath, dn_usr, Password, 0)
    If (Err.Number <> 0) Then
        EcritFichier "Connexion admin choue - Erreur de login", "admin",
admin"
    End If

    Dim x As IADsUser
    Set x =
GetObject("LDAP://100.200.1.101:389/uid=yves,ou=personnel,o=titi.com")
    x.PutEx ADS_PROPERTY_UPDATE, "telephoneNumber", Array("00-00-00-00-00",
"")
    x.SetInfo

Thanks.

--
Posted via CNET Help.com
http://www.*-*-*.com/



Sun, 25 Aug 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. 911 - Reading NT event 20050 whith ADSI...

2. 911 - Reading NT event 20050 whith ADSI...

3. 911 - Reading NT event 20050 whith ADSI...

4. 911 - Reading NT event 20050 whith ADSI...

5. ADSI, LDAP, VB

6. ADSI/LDAP problem with exemple from microsoft

7. Using VB to access Exchange Server via ADSI/LDAP

8. ADSI, LDAP, VB

9. LDAP field values from 3rdparty Directory using ADSI and VB

10. ADSI, LDAP, VB

11. LDAP field values from 3rdparty Directory using ADSI and VB

12. LDAP, ADSI, VB DLL

 

 
Powered by phpBB® Forum Software