Previous Page
Constants

Solar_Role_Adapter_Ldap
Properties

Next Page
Methods

Properties

Public

$list

(array) A public reference to the session store.

Inherited from Solar_Role_Adapter.

Protected

$_Solar_Role_Adapter

(array) User-defined configuration values.

Inherited from Solar_Role_Adapter.

Keys are ...

refresh
(bool) Whether or not to refresh (reload) roles every time load() is called. The default is to load into the session once, then not load again even though load() gets called.

$_Solar_Role_Adapter_Ldap

(array) Array of user configuration values.

Keys are ...

url
(string) URL to the LDAP server. Takes the format of "ldaps://example.com:389".
basedn
(string) The base DN for the LDAP search; example: "o=my company,c=us".
filter
(string) An sprintf() filter string for the LDAP search; %s represents the username. Example: "uid=%s".
attrib
(string) Use these attributes to find role names.
binddn
(string) Bind to the LDAP server as this distinguished name.
bindpw
(string) Bind to the LDAP server as with this password.

$_config

(array) Collection point for configuration values.

Inherited from Solar_Base.

Note that you do not define config defaults in $_config directly.

<?php
// DO NOT DO THIS
protected $_config = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

Instead, define config defaults in a protected property named for the class, withan underscore prefix.

For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.

<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

$_loaded

(bool) Have we attempted to load the list of roles yet?

Inherited from Solar_Role_Adapter.

$_session

(Solar_Session) A class-segmented session-variable reference.

Inherited from Solar_Role_Adapter.

Private

None.