Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyoxldapsync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
pyoxldapsync
Commits
c98991f2
Commit
c98991f2
authored
4 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
add imaplogin to synced user attributes
parent
2ca7c5cc
Branches
master
No related tags found
No related merge requests found
Checking pipeline status
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
oxldapsync/ldap.py
+1
-0
1 addition, 0 deletions
oxldapsync/ldap.py
oxldapsync/ox.py
+2
-0
2 additions, 0 deletions
oxldapsync/ox.py
with
3 additions
and
0 deletions
oxldapsync/ldap.py
+
1
−
0
View file @
c98991f2
...
...
@@ -63,6 +63,7 @@ class LDAPConnection:
def
search_users
(
self
):
obj_def
=
ldap3
.
ObjectDef
(
"
user
"
,
self
.
connection
)
obj_def
+=
[
"
sAMAccountName
"
]
user_filter
=
config
.
get
(
'
ldap_user_filter
'
,
'
(&(objectClass=user)(mail=*))
'
)
search_obj
=
ldap3
.
Reader
(
self
.
connection
,
obj_def
,
self
.
user_dn
,
user_filter
)
for
entry
in
search_obj
.
search
():
...
...
This diff is collapsed.
Click to expand it.
oxldapsync/ox.py
+
2
−
0
View file @
c98991f2
...
...
@@ -44,6 +44,7 @@ def delete_user(username):
entry_to_cmdline
=
{
'
cn
'
:
'
--username
'
,
'
sAMAccountName
'
:
'
--imaplogin
'
,
'
displayName
'
:
'
--displayname
'
,
'
givenName
'
:
'
--givenname
'
,
'
sn
'
:
'
--surname
'
,
...
...
@@ -52,6 +53,7 @@ entry_to_cmdline = {
entry_to_oxuser
=
{
'
cn
'
:
'
Name
'
,
'
sAMAccountName
'
:
'
ImapLogin
'
,
'
displayName
'
:
'
Display_name
'
,
'
givenName
'
:
'
Given_name
'
,
'
sn
'
:
'
Sur_name
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment