Use CFLDAP to Add user onto Active Directory

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Re: Use CFLDAP to Add user onto Active Directory

    How do you change a password? What I found out so far was that the password
    must be:
    - enclosed in quotes
    - converted to unicode then base64
    - run cfldap with SSL (port 636)
    - Watch for the security limitations such as min characters, case sensitivity
    and mixing letters and numbers.
    - used with the attribute "unicodePWD"

    My question is what functions to use to convert it to unicode.

    Thanks,
    -Giraldo

    nitrog7 Guest

  2. Similar Questions and Discussions

    1. using CFLDAP to set passwords in Active Directory
      Hi Im using CFLDAP to create users in an active directory. This is working fine however im creating accounts with blank passwords. When i try...
    2. Change Active Directory Password via CFLDAP - HELP!!
      Hello all! Has anyone successfully made CFLDAP change an Active Directory user password? I've been hitting the wall for the past week, searched...
    3. CFLDAP and Active Directory
      :frown; I'm attempting to write an application in CF which reads a SQL database and then verifies that the information in a MS Exchange address...
    4. CFLDAP - Active Directory Groups
      I want to add/delete users to an Active Directory group using CFLDAP? Does anyone know how to do this? Thank you very much!
    5. Help me! How I could make user in active directory
      The canonical sample is right here in the MSDN docs: ...
  3. #2

    Default Re: Use CFLDAP to Add user onto Active Directory

    I am attempting to use CFLDAP to add users to Active Directory. So far, I have
    been successful with adding them, but I believe the password is blank upon
    creation. Has anyone had any luck adding a user w/ an assigned password?
    Thanks!

    Jeff999 Guest

  4. #3

    Default Re: Use CFLDAP to Add user onto Active Directory

    I've had success changing network passwords using the following code. Keep in
    mind, my server is logged in using an account that has administrative rights in
    order for this to work. Some will also disable the cfexecute tag, which needs
    to be enabled.

    <cfexecute name="NET USER" arguments="#ARGUMENTS.SAMACCOUNTNAME#
    #ARGUMENTS.PASSWORD# /domain"></cfexecute>

    J.C. Guest

  5. #4

    Default Re: Use CFLDAP to Add user onto Active Directory

    Has anyone been able to find out how to add a user?s password or modify it?

    I've been building an application to do this and the password attribute has
    put me to a stop.


    I believe I found out what is needed for the USERACCOUNTCONTROL attribute.

    Using Windows 2003 and adding an account I had to set the USERACCOUNTCONTROL
    to 544 (enabled) or 546 (disabled). 514 would work but the Account is
    disabled. When I use 512 the web page would break.

    When looking in a AD using dsa.msc (Active Directory Users and Computers MMC)
    if you add the Additional Account Information tab (included in the 2003
    resource kit) you can see the USERACCOUNTCONTROL with a decode button next to
    it. If you hit that button it will tell you that 512 = Normal user, 514 =
    Disabled and Normal User, 544 = Password Not Required and Normal User and 546 =
    Password Not Required, Normal User and Disabled.

    When using 544 the account is created and I can log in with a blank password
    regardless of the Domain password requirements. 546 is the same however the
    account is disabled.

    When I use 514 the account will be created however I can not enable it either
    through Cold Fusion or through dsa.msc. When trying to enable it using dsa.msc
    Windows will give an error saying that the password doesn't meet the
    requirements. This is due to the password being blank.

    When I use 512 my page will not work. I get a "Will not perform" error and
    something about a missing attribute. I believe it is the userpassword
    attribute not being sent correctly because 512 is using the password
    requirements and yes when I manually put in the password using dsa.msc the
    password will take. When I send the userpassword attribute (using 514, 544 or
    546), I can query for it and display it but when logging in with it, it will
    not work. I still haven't tried all of nitrog7 ideas on what the password
    should be.





    I've been looking all over the net trying to find out how to reset a password
    and this thread is the closest that I've come.
    Right now I have a scheduled task to run a VB script to reset the password to
    a random generated password. So if anyone has any ideas on how the syntax
    should be to reset a password please share it.


    Okis14 Guest

  6. #5

    Default Re: Use CFLDAP to Add user onto Active Directory

    Did any of you folks find a way to change the unicodePwd password value in
    Active Directory from CFLDAP? I am running into lots of problems with it - we
    have CFLDAP via SSL, binding with Account Operator account, but still getting a
    "WILL_NOT_PERFORM" message from AD.

    Can anyone help?

    dmichailov Guest

  7. #6

    Default Re: Use CFLDAP to Add user onto Active Directory

    Sorry Guys, Microsofts Help Site Says Specifically that the UnicodePwd is readonly.
    Hot Programmer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139