Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
primtux-ldap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Primtux-SLIS
primtux-ldap
Commits
09f4a059
Verified
Commit
09f4a059
authored
7 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Reset.sh
parent
0d7cd528
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
reset.sh
+19
-0
19 additions, 0 deletions
reset.sh
with
19 additions
and
0 deletions
reset.sh
0 → 100644
+
19
−
0
View file @
09f4a059
#!/bin/bash
read
-p
"This script should be run on Primtux to synchronise ldap do you want to continue [y/N]"
ans
if
[
"
$ans
"
!=
"y"
]
then
exit
1
fi
echo
"Re creating users"
for
user
in
01-mini 02-super 03-maxi direction prof
do
sudo
adduser
--force-badname
$user
done
echo
"Disabling LDAP"
sudo sed
-ie
's/ ldap//'
/etc/nsswitch.conf
echo
"Removing Proxy"
for
f
in
/home/
*
/.profile
do
sudo sed
-ie
's/export .*_PROXY=.*slis:3128.*$//'
$f
done
echo
"All done, exit and re-open your session to see the changes"
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