You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module provides the sqlattribs:AttributeFromSQL auth proc filter, which can be used as follows:
40
+
This module provides the _sqlattribs:AttributeFromSQL_ auth proc filter,
41
+
which can be used as follows:
41
42
42
43
```php
43
44
50 => array(
@@ -56,23 +57,23 @@ This module provides the sqlattribs:AttributeFromSQL auth proc filter, which can
56
57
57
58
Where the parameters are as follows:
58
59
59
-
*`class` - the name of the class, must be `sqlattribs:AttributeFromSQL`
60
+
*`class` - the name of the class, must be _sqlattribs:AttributeFromSQL_
60
61
61
-
*`attribute` - the attribute to use as the uid/key for database searches, defaults to `eduPersonPrincipalName` if not specified.
62
+
*`attribute` - the attribute to use as the uid/key for database searches, defaults to _eduPersonPrincipalName_ if not specified.
62
63
63
64
*`limit` - an optional array specifying the attribute names we can add. If not specified, all attributes that are found in the database are added. Defaults to allowing all attributes.
64
65
65
66
*`replace` - behaviour when an existing attribute of the same name is encountered. If `false` (the default) then new values are pushed into an array, creating a multi-valued attribute. If `true`, then existing attributes of the same name are replaced (deleted).
66
67
67
68
*`database` - an array containing information about the data store, with the following parameters:
68
69
69
-
*`dsn` - the data source name, defaults to `mysql:host=localhost;dbname=simplesamlphp`
70
+
*`dsn` - the data source name, defaults to _mysql:host=localhost;dbname=simplesamlphp_
70
71
71
72
*`username` - the username to connect to the database, defaults to none (blank username)
72
73
73
74
*`password` - the password to connect to the database, defaults to none (blank password)
74
75
75
-
*`table` - the name of the table/view to search for attributes, defaults to `AttributeFromSQL`
76
+
*`table` - the name of the table/view to search for attributes, defaults to _AttributeFromSQL_
INSERT INTO AttributeFromSQL (uid, attribute, value) VALUES ('user@example.org', 'mail', 'user@example.org');
88
89
```
89
90
90
-
The optional `sp` field (defaults to '%' with the above SQL CREATE) is used
91
+
The optional _sp_ field (defaults to '%' with the above SQL CREATE) is used
91
92
to limit which SP sees a particular attribute. The special value `%`
92
93
is used to indicate all SPs. If you wish to indicate more than one SP but
93
94
not all, insert multiple lines.
94
95
95
96
Where multiple attributes of the same name occur, these become a single
96
-
multi-valued attribute. Thus assuming the user `user@example.org`
97
+
multi-valued attribute. Thus assuming the user _user@example.org_
97
98
started with attributes of:
98
99
99
100
```php
@@ -122,4 +123,5 @@ $attributes = array(
122
123
),
123
124
```
124
125
125
-
Note that because the the `limit` parameter, the mail attribute was not added. And because `replace` was false, eduPersonAffiliation was merged. It is assumed that this SP has an Entity Id of `https://sp.example.org/shibboleth-sp` - other SPs would not see the SP-specific eduPersonEntitlement attribute.
126
+
Note that because the the `limit` parameter, the mail attribute was not added. And because `replace` was false, _eduPersonAffiliation_ was merged. It is assumed that this SP has an Entity Id of `https://sp.example.org/shibboleth-sp` - other SPs would not see the SP-specific _eduPersonEntitlement_ attribute.
0 commit comments