@@ -39,6 +39,7 @@ func TestAddLdapBindDn(t *testing.T) {
3939 "--user-search-base" , "ou=Users,dc=full-domain-bind,dc=org" ,
4040 "--user-filter" , "(memberOf=cn=user-group,ou=example,dc=full-domain-bind,dc=org)" ,
4141 "--admin-filter" , "(memberOf=cn=admin-group,ou=example,dc=full-domain-bind,dc=org)" ,
42+ "--restricted-filter" , "(memberOf=cn=restricted-group,ou=example,dc=full-domain-bind,dc=org)" ,
4243 "--username-attribute" , "uid-bind full" ,
4344 "--firstname-attribute" , "givenName-bind full" ,
4445 "--surname-attribute" , "sn-bind full" ,
@@ -74,6 +75,7 @@ func TestAddLdapBindDn(t *testing.T) {
7475 SearchPageSize : 99 ,
7576 Filter : "(memberOf=cn=user-group,ou=example,dc=full-domain-bind,dc=org)" ,
7677 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-bind,dc=org)" ,
78+ RestrictedFilter : "(memberOf=cn=restricted-group,ou=example,dc=full-domain-bind,dc=org)" ,
7779 Enabled : true ,
7880 },
7981 },
@@ -265,6 +267,7 @@ func TestAddLdapSimpleAuth(t *testing.T) {
265267 "--user-search-base" , "ou=Users,dc=full-domain-simple,dc=org" ,
266268 "--user-filter" , "(&(objectClass=posixAccount)(full-simple-cn=%s))" ,
267269 "--admin-filter" , "(memberOf=cn=admin-group,ou=example,dc=full-domain-simple,dc=org)" ,
270+ "--restricted-filter" , "(memberOf=cn=restricted-group,ou=example,dc=full-domain-simple,dc=org)" ,
268271 "--username-attribute" , "uid-simple full" ,
269272 "--firstname-attribute" , "givenName-simple full" ,
270273 "--surname-attribute" , "sn-simple full" ,
@@ -292,6 +295,7 @@ func TestAddLdapSimpleAuth(t *testing.T) {
292295 AttributeSSHPublicKey : "publickey-simple full" ,
293296 Filter : "(&(objectClass=posixAccount)(full-simple-cn=%s))" ,
294297 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-simple,dc=org)" ,
298+ RestrictedFilter : "(memberOf=cn=restricted-group,ou=example,dc=full-domain-simple,dc=org)" ,
295299 Enabled : true ,
296300 },
297301 },
@@ -499,6 +503,7 @@ func TestUpdateLdapBindDn(t *testing.T) {
499503 "--user-search-base" , "ou=Users,dc=full-domain-bind,dc=org" ,
500504 "--user-filter" , "(memberOf=cn=user-group,ou=example,dc=full-domain-bind,dc=org)" ,
501505 "--admin-filter" , "(memberOf=cn=admin-group,ou=example,dc=full-domain-bind,dc=org)" ,
506+ "--restricted-filter" , "(memberOf=cn=restricted-group,ou=example,dc=full-domain-bind,dc=org)" ,
502507 "--username-attribute" , "uid-bind full" ,
503508 "--firstname-attribute" , "givenName-bind full" ,
504509 "--surname-attribute" , "sn-bind full" ,
@@ -543,6 +548,7 @@ func TestUpdateLdapBindDn(t *testing.T) {
543548 SearchPageSize : 99 ,
544549 Filter : "(memberOf=cn=user-group,ou=example,dc=full-domain-bind,dc=org)" ,
545550 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-bind,dc=org)" ,
551+ RestrictedFilter : "(memberOf=cn=restricted-group,ou=example,dc=full-domain-bind,dc=org)" ,
546552 Enabled : true ,
547553 },
548554 },
@@ -978,6 +984,7 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
978984 "--user-search-base" , "ou=Users,dc=full-domain-simple,dc=org" ,
979985 "--user-filter" , "(&(objectClass=posixAccount)(full-simple-cn=%s))" ,
980986 "--admin-filter" , "(memberOf=cn=admin-group,ou=example,dc=full-domain-simple,dc=org)" ,
987+ "--restricted-filter" , "(memberOf=cn=restricted-group,ou=example,dc=full-domain-simple,dc=org)" ,
981988 "--username-attribute" , "uid-simple full" ,
982989 "--firstname-attribute" , "givenName-simple full" ,
983990 "--surname-attribute" , "sn-simple full" ,
@@ -1006,6 +1013,7 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
10061013 AttributeSSHPublicKey : "publickey-simple full" ,
10071014 Filter : "(&(objectClass=posixAccount)(full-simple-cn=%s))" ,
10081015 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-simple,dc=org)" ,
1016+ RestrictedFilter : "(memberOf=cn=restricted-group,ou=example,dc=full-domain-simple,dc=org)" ,
10091017 },
10101018 },
10111019 },
0 commit comments