From 06d43baf93dfbf95c829a5e61ae3b91904fbdd23 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sun, 3 Mar 2013 10:58:39 +0100 Subject: update the users password after a successful ldap authentication --- modules/extra/m_ldap_authentication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/extra/m_ldap_authentication.cpp') 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(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(ii->dn)); ii->req->Success(me); } break; -- cgit