diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2013-03-03 10:58:39 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2013-03-03 10:58:39 +0100 |
commit | 06d43baf93dfbf95c829a5e61ae3b91904fbdd23 (patch) | |
tree | ce5c5fa67c60297d8f1f99bd081e5ef91da15aba /modules/extra/m_ldap_authentication.cpp | |
parent | 5f746621008fcc2df647deb66ba1bb28cb3322c6 (diff) |
update the users password after a successful ldap authentication
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index 233a43dde..a605fcb74 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -113,8 +113,10 @@ class IdentifyInterface : public LDAPInterface ii->user->SendMessage(NickServ, _("Your account \002%s\002 has been successfully created."), na->nick.c_str()); } } - na->nc->Extend("m_ldap_authentication_dn", new ExtensibleItemClass<Anope::string>(ii->dn)); + // encrypt and store the password in the nickcore + Anope::Encrypt(ii->req->GetPassword(), na->nc->pass); + na->nc->Extend("m_ldap_authentication_dn", new ExtensibleItemClass<Anope::string>(ii->dn)); ii->req->Success(me); } break; |