Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1096759
PhabricatorLDAPConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
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
)
->
setBoolOptions
(
array
(
pht
(
"Enable LDAP Authentication"
),
pht
(
"Disable 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
)
->
setBoolOptions
(
array
(
pht
(
"Enabled"
),
pht
(
"Disabled"
),
)),
$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
)
->
setBoolOptions
(
array
(
pht
(
"Follow Referrals"
),
pht
(
"Do Not Follow Referrals"
),
))
->
setDescription
(
pht
(
"You may need to disable this if you use Windows 2003 "
.
"Active Directory."
)),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 30, 11:17 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
273289
Default Alt Text
PhabricatorLDAPConfigOptions.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment