瀏覽代碼

Signed-off-by: Russ Whitehead <william.whitehead@lexisnexis.com>

Russ Whitehead 7 年之前
父節點
當前提交
c8ad518e92

+ 1 - 0
system/security/LdapSecurity/ldapsecurity.cpp

@@ -32,6 +32,7 @@ CLdapSecUser::CLdapSecUser(const char *name, const char *pw) :
     setPosixenabled(false);
     setSudoersEnabled(false);
     setInSudoers(false);
+    setSessionToken(0);
 }
 
 CLdapSecUser::~CLdapSecUser()

+ 1 - 1
system/security/plugins/htpasswdSecurity/htpasswdSecurity.cpp

@@ -158,7 +158,7 @@ protected:
 		if (0 == user.length())
 			throw MakeStringException(-1, "htpasswd User name is NULL");
 
-		if (sec_user.credentials().getSessionToken())//Already authenticated it token exists
+        if (sec_user.credentials().getSessionToken() != 0  || sec_user.credentials().getSignature())//Already authenticated it token or signature exist
 		    return true;
 
 		CriticalBlock block(crit);

+ 1 - 1
system/security/shared/SecureUser.hpp

@@ -48,7 +48,7 @@ public:
     IMPLEMENT_IINTERFACE
 
     CSecureUser(const char *name, const char *pw) : 
-        m_name(name), m_pw(pw), m_authenticateStatus(AS_UNKNOWN), m_userID(0), m_status(SecUserStatus_Unknown)
+        m_name(name), m_pw(pw), m_authenticateStatus(AS_UNKNOWN), m_userID(0), m_status(SecUserStatus_Unknown), m_sessionToken(0)
     {
     }