• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Doubt ldap password change

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm desenvovendo an API to enable the User to change their password in AD through the windows of my application. Today I make this change when the user is not returning error 773 (user must reset password). My doubt this at this point. I can make this change password for users who need to change password at first logon? By java when I make connection 636 (SSL) with these users, Retorn me expecption 773. As is done in this case? How can I change an attribute if I can not Logor? Need to login with administrator password and then change these users? Can you help me with this question please.

thank you

Cristian
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting haven't come across this.

The ldap code really say 773 (reset password)? Or authentication failed (some other code) which can mean the account is locked (needs unlocking) or the password is indeed expired (need changing)?
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Cristian Silva
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:Interesting haven't come across this.

The ldap code really say 773 (reset password)? Or authentication failed (some other code) which can mean the account is locked (needs unlocking) or the password is indeed expired (need changing)?



K. Tsang

Yes, the return code 773 is an exception. Authentication was successful and returns me 773 ldap "user must reset password". The password needs to be changed, is that a new User with default password and need to change it at first logon.

thank you

Cristian
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I don't know if it's a good idea to change the password directly in Java directly, because it looks lots of setting up to do (eg ssl, trusting with AD DC).

However, if you must, I see there are 2 ways: 1) change it in Java through console or GUI or something or 2) submit Windows command directly to AD server.

Either way having the DC/admin user right is simpler.

You may want to Google a bit. There are sample code (option 1) that shows how to do it but I never tried them so don't know it they work.
 
What's gotten into you? Could it be this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic