Commit 0accec78 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2256 Removed radiusExpiration default value

parent c10a0f96
......@@ -65,33 +65,24 @@ class freeradiusAccount extends simplePlugin {
'name' => _('Support 802.1x'),
'attrs' => array(
new StringAttribute(
_('Tunnel medium type'), // Label of the attribute
_('Name of the tunnel medium type'), // Description
'radiusTunnelMediumType', // LDAP name
TRUE, // Mandatory
'IEEE 802' // default value
_('Tunnel medium type'), _('Name of the tunnel medium type'),
'radiusTunnelMediumType', TRUE,
'IEEE 802'
),
new StringAttribute(
_('Tunnel type'), // Label of the attribute
_('Name of the tunnel type'), // Description
'radiusTunnelType', // LDAP name
TRUE, // Mandatory
'VLAN' // default value
_('Tunnel type'), _('Name of the tunnel type'),
'radiusTunnelType', TRUE,
'VLAN'
),
new StringAttribute(
_('VLAN id'), // Label of the attribute
_('VLAN identifier'), // Description
'radiusTunnelPrivateGroupId', // LDAP name
FALSE, // Mandatory
_('VLAN id'), _('VLAN identifier'),
'radiusTunnelPrivateGroupId', FALSE,
''
),
new DateAttribute(
_('Expiration date'), // Label of the attribute
_('Date of the expiration account'), // Description
'radiusExpiration', // LDAP name
FALSE, // Mandatory
'd M Y',
date('Y-m-d', time() + (7 * 24 * 60 * 60)) // Expire in one week
_('Expiration date'), _('Date of the expiration account'),
'radiusExpiration', FALSE,
'd M Y', ''
),
)
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment