Added Authorization plugin

Added LDAPAuthorization plugin
This commit is contained in:
Craig Andrews
2009-11-18 14:19:43 -05:00
parent 1d6bacc681
commit d07df8a796
8 changed files with 371 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
/**
* StatusNet, the distributed open-source microblogging tool
*
* Plugin to enable LDAP Authentication and Authorization
* Plugin to enable LDAP Authentication
*
* PHP version 5
*
@@ -65,6 +65,7 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin
}
if($this->password_changeable && (! isset($this->attributes['password']) || !isset($this->password_encoding))){
throw new Exception("if password_changeable is set, the password attribute and password_encoding must also be specified");
}
}
//---interface implementation---//