Try replace_attribute: http://net-ldap.rubyforge.org/rdoc/classes/Net/LDAP.html#M000030
from rdoc example for updating mail attribute: dn = "cn=modifyme,dc=example,dc=com" ldap.replace_attribute dn, :mail, "[email protected]" I haven't worked with Active Directory specifically, so might be quirks regarding updating password (pre-digested/-encoded first, or ...?) . Best to have other means of re-setting password while testing what works. Jeff On Apr 21, 9:40 am, Justin Grudzien <[email protected]> wrote: > I am building an application in Rails using ruby-net-ldap and I am > trying to figure out how to change passwords in Active Directory. Does > anyone have any experience with this using the ruby-net-ldap gem? I know > that I remember seeing an example on the web somewhere that showed how > to do this using the depot application from the Rails book but for the > life of me I can't find it again. :( Any help would be greatly > appreciated. > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

