Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a430680a
Commit
a430680a
authored
Oct 30, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow set ldap_cn and ldap_access for new group via API
parent
5011af46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
doc/api/groups.md
doc/api/groups.md
+2
-0
lib/api/groups.rb
lib/api/groups.rb
+1
-1
No files found.
doc/api/groups.md
View file @
a430680a
...
...
@@ -45,6 +45,8 @@ Parameters:
+
`name`
(required) - The name of the group
+
`path`
(required) - The path of the group
+
`ldap_cn`
(optional) - LDAP group name to sync with
+
`ldap_access`
(optional) - Access level for LDAP group members
## Transfer project to group
...
...
lib/api/groups.rb
View file @
a430680a
...
...
@@ -42,7 +42,7 @@ module API
authenticated_as_admin!
required_attributes!
[
:name
,
:path
]
attrs
=
attributes_for_keys
[
:name
,
:path
]
attrs
=
attributes_for_keys
[
:name
,
:path
,
:ldap_cn
,
:ldap_access
]
@group
=
Group
.
new
(
attrs
)
@group
.
owner
=
current_user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment