for loop on this

Discussion in 'Scripting' started by joey, Oct 1, 2008.

  1. joey

    joey Guest

    How do i change this script to use a loop

    On Error Resume Next

    Set objUser = GetObject _
    ("LDAP://localhost:51008/KEY=xxx,key=Services,key=Configuration,key=yyy,key=zzz,CN=aaa,DC=site0000001,DC=domain,DC=com")
    objUser.Put "KeyValueString", "bbb"
    objUser.SetInfo

    Set objUser = GetObject _
    ("LDAP://localhost:51008/key=qqq,key=Services,key=Configuration,key=yyy,key=zzz,CN=aaa,DC=site0000001,DC=domain,DC=com")
    objUser.Put "KeyValueString", "bbb"
    objUser.SetInfo
     
    joey, Oct 1, 2008
    #1
    1. Advertisements

  2. You need to tell us what your loop condition is. Do you want to run it
    twice? Until a certain condition is met? Until an error is encountered?
    Other?
     
    Pegasus \(MVP\), Oct 1, 2008
    #2
    1. Advertisements

  3. joey

    joey Guest

    No the loop is to modify attibutes in ADAM. The attribute keystring modifies
    different "KEYS" in ADAM
     
    joey, Oct 1, 2008
    #3
  4. Richard Mueller [MVP], Oct 1, 2008
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.