Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Michael William Coughlin
GraceDB Server
Commits
fae4f50c
Commit
fae4f50c
authored
10 years ago
by
Branson Craig Stephens
Browse files
Options
Downloads
Patches
Plain Diff
Oops, forgot to remove some of the scaffolding from refresh_users_from_ldap.py
parent
b11355dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ligoauth/management/commands/refresh_users_from_ldap.py
+0
-7
0 additions, 7 deletions
ligoauth/management/commands/refresh_users_from_ldap.py
with
0 additions
and
7 deletions
ligoauth/management/commands/refresh_users_from_ldap.py
+
0
−
7
View file @
fae4f50c
...
...
@@ -38,11 +38,6 @@ class Command(NoArgsCommand):
in
ldap_result
.
get
(
'
isMemberOf
'
,[])
principal
=
ldap_result
[
'
krbPrincipalName
'
][
0
]
print
"
Got ldap entry for %s %s
"
%
(
first_name
.
encode
(
'
utf-8
'
),
last_name
.
encode
(
'
utf-8
'
))
if
not
principal
:
continue
# Update/Create LigoLdapUser entry
# This is breaking. XXX Do we need to pass in default values for the underlying User object?
defaults
=
{
...
...
@@ -62,8 +57,6 @@ class Command(NoArgsCommand):
or
(
user
.
is_active
!=
is_active
)
if
changed
:
print
"
old values: %s %s %s %s %s
"
%
(
user
.
first_name
,
user
.
last_name
,
user
.
email
,
user
.
username
,
user
.
is_active
)
print
"
new values: %s %s %s %s %s
"
%
(
first_name
,
last_name
,
email
,
principal
,
is_active
)
user
.
first_name
=
first_name
user
.
last_name
=
last_name
user
.
email
=
email
...
...
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