Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
6ceebca6
Commit
6ceebca6
authored
4 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
PAM configuration warning hints
parent
218a73fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/Sdi/ldap.xml
+55
-0
55 additions, 0 deletions
Doc/Sdi/ldap.xml
with
55 additions
and
0 deletions
Doc/Sdi/ldap.xml
+
55
−
0
View file @
6ceebca6
...
...
@@ -1207,6 +1207,61 @@ modifying entry "olcDatabase={0}config,cn=config"</screen>
<section
xml:id=
"sdiSectLdapOsSupport"
>
<title><xref
linkend=
"glo_LDAP"
/>
based user login
</title>
<caution
xml:id=
"sdiSectLdapOsSupportPamCaution"
>
<para>
In this exercise you'll modify your system's
<quote
xlink:href=
"https://www.redhat.com/sysadmin/pluggable-authentication-modules-pam"
>
Pluggable
Authentication Modules (PAM)
</quote>
. You may
<emphasis>
easily
</emphasis>
get locked out due to an unintended
misconfiguration. Stick to the following procedures avoiding this type
of mishap:
</para>
<orderedlist>
<listitem>
<para>
Create a backup
<filename>
/root/pam.tgz
</filename>
of your
working
<acronym>
PAM
</acronym>
configuration being represented by
<filename>
/etc/pam.conf
</filename>
and files below
<filename>
/etc/pam.d
</filename>
beforehand:
</para>
<screen>
cd /etc
tar zcf /root/pam.tgz pam.conf pam.d
</screen>
<para>
Check the resulting archive to contain something
like:
</para>
<screen
language=
"bash"
>
root@sdi12b:~# tar ztf /tmp/pam.tgz
pam.conf
pam.d/
pam.d/newusers
pam.d/sshd
...
pam.d/chfn
pam.d/chsh
</screen>
</listitem>
<listitem>
<para>
Always keep an independent (emergency) shell open when
tinkering with
<acronym>
PAM
</acronym>
. In case you are no longer
able to log in
<abbrev>
i.e.
</abbrev>
using
<xref
linkend=
"glo_ssh"
/>
this one allows for restoring your working
configuration:
</para>
<screen
language=
"bash"
>
cd /etc
mv pam.d pam.d.orig # Save your current (not working) PAM
mv pam.conf pam.conf.orig # configuration for later inspection.
tar zxf /root/pam.tgz # Restore your working PAM configuration
</screen>
<para>
After this try to log in again.
</para>
</listitem>
<listitem>
<para>
Prior to rebooting (and thus loosing your emergency login
shell) always try logging in thereby testing your system's
accessibility.
</para>
</listitem>
</orderedlist>
</caution>
<para>
Configure your second VM (the one without
<xref
linkend=
"glo_LDAP"
/>
Server) to allow for user login purely based on
<xref
linkend=
"glo_LDAP"
/>
.
</para>
...
...
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