bsb_active_directory 98.0 → 99.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bsb_active_directory/group.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfc7774788a713c1bf4098879ad3de9c3e9b3a917324d831579fa3a0d9517d30
|
4
|
+
data.tar.gz: c5eb6bf951f0c7e426d467b86ab840cce96fabc0602a55e58865f3686552c953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1867c287a58341399018e88ad96ba171555ea0d9a77c98c8dea2b8c038502e1aa86f8d6c7ab0c984444bf15cdd6ce295b3c8b93a04e251074ae1ac8177fd8bc9
|
7
|
+
data.tar.gz: ffa500d05f3a9638d7758acf1fc94c7031ec4d19a6472cf2a9c23803fdc3bb18ca1747d940d898fc8b16db9577d25e66952ec49fad83d8ea62f63e40778aafd3
|
@@ -50,7 +50,7 @@ module ActiveDirectory
|
|
50
50
|
user.member_of?(self)
|
51
51
|
end
|
52
52
|
|
53
|
-
def self.create_security_group(ou, name, type
|
53
|
+
def self.create_security_group(ou, name, type)
|
54
54
|
type_mask = GroupType::SECURITY_ENABLED
|
55
55
|
case type
|
56
56
|
when 'local'
|
@@ -65,8 +65,8 @@ module ActiveDirectory
|
|
65
65
|
dn = 'CN=' + name + ',' + ou
|
66
66
|
attributes = {
|
67
67
|
objectClass: %w[top group],
|
68
|
+
cn: name,
|
68
69
|
sAMAccountName: name,
|
69
|
-
objectCategory: 'CN=Group,CN=Schema,CN=Configuration,' + base,
|
70
70
|
groupType: type_mask.to_s
|
71
71
|
}
|
72
72
|
@@ldap.add(dn: dn, attributes: attributes)
|