Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Joe Bickley #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 to put something into the UnicodePwd schema item i get a nasty
error. When i searched for the error in google i came accross and article from
a Java app that said it needed to speak to the LDAP server via SSL and also
encode the password being sent.
At this point i run out of knowlege. Has any one achieved this, can you help?
Joe
Joe Bickley Guest
-
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... -
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 -... -
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... -
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! -
Active Directory Search fails ("The directory service is unavailab
Hi all, I'm having one of those nerve wrecking errors, when trying to perform a simple search in an Active Directory. The objective of the code... -
dmichailov #2
Re: using CFLDAP to set passwords in Active Directory
Hey Joe,
Have you found a solution? I have the exact same problem with setting a password in Active Directory via LDAP - and I am running out of ideas now?
dmichailov Guest
-
Joe Bickley #3
Re: using CFLDAP to set passwords in Active Directory
Hi dmichailov,
Kind of. Ok first of all you have to get SSL set up with your active
directory. Post back if your stuggling to do this and i can help, i found it to
be a huge pain in the neck! Passwords CAN NOT be set in AD/LDAP without SSL
being available.
Now i dont have the code to do it at the moment i never got round to working
it out before we ditched it in favour of asp.net however we have some coders
over from india working on a project that will include it! I will post it when
i have it as there is very little out there to help with this.
Joe
Joe Bickley Guest
-
dmichailov #4
Re: using CFLDAP to set passwords in Active Directory
Joe,
if you could forward some working CF code, that would be awesome. I have
created the SSL connection between the CF box and the AD box. I can run other
modify or add operations via CFLDAP/SSL. So, the problem I am experiencing
seems to be either in the encodinig of the password (doesn't it need to be
unicode and then base64 encoded before being sent to AD) or somewhere in the AD
settings.
I would appreciate if you share some working code so that I can see what is
different and take it from there. The unicodePwd change call is below and the
error I get is "UNWILLING TO PERFORM"
Thanks in advance!!
<CFLDAP action="MODIFY"
server="#this.ldapServer#"
DN="#getUserDNRet#"
attributes="unicodePwd=IgBUAGUAcwB0AGkAbgBnADEAMgA zADQANQAiAA=="
modifyType="replace"
username="DOMAIN\ACCOUNTOPERATORUSERID"
password="ACCOUNTOPERATORPASSWORD"
secure="CFSSL_BASIC"
port="636">dmichailov Guest
-
Joe Bickley #5
Re: using CFLDAP to set passwords in Active Directory
Yeah your having the exact same problem i ran into. I could do everything but
set the password which lets face it is the most important thing!
Hope these guys can solve the problem and i will deffinately post the code.
Failing that u would have to use something else to set the password. I tried
asking macromedia directly for some help but non was given !
Joe Bickley Guest
-
Flashhhgordon #6
Re: using CFLDAP to set passwords in Active Directory
Joe,
Do you have the code already?
Thank you in forward.
Gordon
Flashhhgordon Guest
-
Wendall Mosemann #7
Re: using CFLDAP to set passwords in Active Directory
You can set the password using <cfexecute> like so:
<cfexecute name="NET" arguments="user #sAMAccountName# Test123$ /domain"></cfexecute>
Junior Member
- Join Date
- Oct 2010
- Posts
- 2
-
Unregistered #8
Using CFLDAP to set passwords in Active Directory
the cfexecute line is awesome and all, but what if I don't want to be running coldfusion from an account that could compromise my entire domain if someone exploits a CF flaw?
(sorry if I come from a house of "run sandboxed and at low privileges whenever possible)Unregistered Guest



Reply With Quote

