Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
78ba638f
Commit
78ba638f
authored
May 31, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add localuser PAM alternative helper
parent
41bffb6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
install-localuser-etersoft.sh
dc-client/install-localuser-etersoft.sh
+22
-0
tune_sssd.sh
dc-client/tune_sssd.sh
+3
-1
No files found.
dc-client/install-localuser-etersoft.sh
0 → 100755
View file @
78ba638f
#!/bin/sh
# Install system-check-localuser-etersoft PAM alternative
# Creates it from system-check-localuser-systemd with UID threshold 65536 -> 500
# for SSSD domain users support
SRC
=
/etc/pam.d/system-check-localuser-systemd
DST
=
/etc/pam.d/system-check-localuser-etersoft
if
[
!
-f
"
$SRC
"
]
;
then
echo
"Source file
$SRC
not found"
>
&2
exit
1
fi
if
[
-f
"
$DST
"
]
;
then
echo
"
$DST
already exists, skipping creation"
else
sed
's/uid >= 65536/uid >= 500/g; s/UID >= 65536/UID >= 500/g; s/UID < 65536/UID < 500/g; s/Systemd dynamic mode/Etersoft domain mode/; s/systemd dynamic users (not in/SSSD domain users (not in/; s/systemd dynamic users/dynamic users/'
"
$SRC
"
>
"
$DST
"
echo
"Created
$DST
"
fi
control system-check-localuser etersoft
echo
"Switched system-check-localuser to etersoft"
dc-client/tune_sssd.sh
View file @
78ba638f
...
...
@@ -226,6 +226,9 @@ kdestroy
case
$(
epm print info
-d
)
in
ALTLinux
)
control system-auth sss
# Install etersoft alternative for system-check-localuser (UID >= 500 for SSSD)
SCRIPTDIR
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
sh
"
$SCRIPTDIR
/install-localuser-etersoft.sh"
||
fatal
"Failed to install system-check-localuser-etersoft"
# TODO: use common domain groups
# TODO: check libnss-role version
epm assure rolelst libnss-role
...
...
@@ -256,4 +259,3 @@ subst "s|^#\( *\)GSSAPIDelegateCredentials no|\1GSSAPIDelegateCredentials yes|"
echo
"Done. Don't bother about DNS errors above"
echo
"Check https://www.altlinux.org/SSSD/AD for detailed description."
exit
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