Skip to content

Commit f89ff7a

Browse files
authored
GH(88) Add new parameters to New-NSLDAPAuthenticationServer
Adds SearchFilter and SubAttributeName to New-NSLDAPAuthenticationServer
2 parents 381b2e1 + e9cf8b5 commit f89ff7a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

NetScaler/Public/New-NSLDAPAuthenticationServer.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,15 @@ function New-NSLDAPAuthenticationServer {
6060
.PARAMETER LoginAttributeName
6161
LDAP login name attribute. The NetScaler appliance uses the LDAP login name to query external LDAP servers or Active Directories
6262
63+
.PARAMETER SearchFilter
64+
String to be combined with the default LDAP user search string to form the search value.
65+
6366
.PARAMETER GroupAttributeName
6467
LDAP group attribute name used for group extraction on the LDAP server.
6568
69+
.PARAMETER SubAttributeName
70+
LDAP group sub-attribute name. Used for group extraction from the LDAP server.
71+
6672
.PARAMETER SSOAttributeName
6773
LDAP single signon (SSO) attribute. The NetScaler appliance uses the SSO name attribute to query external LDAP servers or Active Directory for an alternate username.
6874
@@ -106,8 +112,12 @@ function New-NSLDAPAuthenticationServer {
106112

107113
[string] $LoginAttributeName,
108114

115+
[string] $SearchFilter,
116+
109117
[string] $GroupAttributeName,
110118

119+
[string] $SubAttributeName,
120+
111121
[string] $SSOAttributeName,
112122

113123
[switch] $PassThru
@@ -142,9 +152,15 @@ function New-NSLDAPAuthenticationServer {
142152
if ($PSBoundParameters.ContainsKey('LoginAttributeName')) {
143153
$params.Add('ldaploginname', $LoginAttributeName)
144154
}
155+
if ($PSBoundParameters.ContainsKey('SearchFilter')) {
156+
$params.Add('searchfilter', $SearchFilter)
157+
}
145158
if ($PSBoundParameters.ContainsKey('GroupAttributeName')) {
146159
$params.Add('groupattrname', $GroupAttributeName)
147160
}
161+
if ($PSBoundParameters.ContainsKey('SubAttributeName')) {
162+
$params.Add('subattributename', $SubAttributeName)
163+
}
148164
if ($PSBoundParameters.ContainsKey('SecurityType')) {
149165
$params.Add('sectype', $SecurityType)
150166
}

0 commit comments

Comments
 (0)