Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93196773
PhabricatorLDAPConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Nov 26, 22:57
Size
2 KB
Mime Type
text/x-php
Expires
Thu, Nov 28, 22:57 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22593787
Attached To
rPH Phabricator
PhabricatorLDAPConfigOptions.php
View Options
<?php
final
class
PhabricatorLDAPConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
"Integration with LDAP"
);
}
public
function
getDescription
()
{
return
pht
(
"LDAP authentication and integration options."
);
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'ldap.auth-enabled'
,
'bool'
,
false
)
->
setOptions
(
array
(
pht
(
"Disable LDAP Authentication"
),
pht
(
"Enable LDAP Authentication"
),
))
->
setDescription
(
pht
(
'Enable LDAP for authentication and registration.'
)),
$this
->
newOption
(
'ldap.hostname'
,
'string'
,
null
)
->
setDescription
(
pht
(
'LDAP server host name.'
)),
$this
->
newOption
(
'ldap.port'
,
'int'
,
389
)
->
setDescription
(
pht
(
'LDAP server port.'
)),
$this
->
newOption
(
'ldap.anonymous-user-name'
,
'string'
,
null
)
->
setDescription
(
pht
(
'Username to login to LDAP server with.'
)),
$this
->
newOption
(
'ldap.anonymous-user-password'
,
'string'
,
null
)
->
setDescription
(
pht
(
'Password to login to LDAP server with.'
)),
// TODO: I have only a vague understanding of what these options do;
// improve the documentation here and provide examples.
$this
->
newOption
(
'ldap.base_dn'
,
'string'
,
null
)
->
setDescription
(
pht
(
'LDAP base domain name.'
)),
$this
->
newOption
(
'ldap.search_attribute'
,
'string'
,
null
),
$this
->
newOption
(
'ldap.search-first'
,
'bool'
,
false
)
->
setOptions
(
array
(
pht
(
"Disabled"
),
pht
(
"Enabled"
),
)),
$this
->
newOption
(
'ldap.username-attribute'
,
'string'
,
null
),
$this
->
newOption
(
'ldap.real_name_attributes'
,
'list<string>'
,
array
())
->
setDescription
(
pht
(
"Attribute or attributes to use as the user's real name. If "
.
"multiple attributes are provided, they will be joined with "
.
"spaces."
)),
$this
->
newOption
(
'ldap.activedirectory_domain'
,
'string'
,
null
),
$this
->
newOption
(
'ldap.version'
,
'int'
,
3
),
$this
->
newOption
(
'ldap.referrals'
,
'bool'
,
true
)
->
setOptions
(
array
(
pht
(
"Do Not Follow Referrals"
),
pht
(
"Follow Referrals"
),
))
->
setDescription
(
pht
(
"You may need to disable this if you use Windows 2003 "
.
"Active Directory."
)),
);
}
}
Event Timeline
Log In to Comment