flagflag  

NSS (Name Service Switch) anchor.png

  • 認証は PAM が行う
     
Page Top

ライブラリ anchor.png

  • /etc/nsswith.conf を見て,下記ライブラリを使用して名前解決を行う
    # ls -l /lib64/libnss_*
    -rwxr-xr-x 1 root root  53504  3月 12 04:57 /lib64/libnss_compat-2.28.so*
    lrwxrwxrwx 1 root root     21  3月 12 04:46 /lib64/libnss_compat.so.2 -> libnss_compat-2.28.so*
    -rwxr-xr-x 1 root root  35472  3月 12 04:57 /lib64/libnss_dns-2.28.so*
    lrwxrwxrwx 1 root root     18  3月 12 04:46 /lib64/libnss_dns.so.2 -> libnss_dns-2.28.so*
    -rwxr-xr-x 1 root root  83728  3月 12 04:57 /lib64/libnss_files-2.28.so*
    lrwxrwxrwx 1 root root     20  3月 12 04:46 /lib64/libnss_files.so.2 -> libnss_files-2.28.so*
    lrwxrwxrwx 1 root root     16  5月 14  2019 /lib64/libnss_ldap.so -> libnss_ldap.so.2*
    -rwxr-xr-x 1 root root  58920  5月 14  2019 /lib64/libnss_ldap.so.2*
    -rwxr-xr-x 1 root root 687144  6月 17 02:53 /lib64/libnss_myhostname.so.2*
    -rwxr-xr-x 1 root root 932312  6月 17 02:53 /lib64/libnss_mymachines.so.2*
    -rwxr-xr-x 1 root root 911104  6月 17 02:53 /lib64/libnss_resolve.so.2*
    -rwxr-xr-x 1 root root  46272  6月  2 04:49 /lib64/libnss_sss.so.2*
    -rwxr-xr-x 1 root root 915160  6月 17 02:53 /lib64/libnss_systemd.so.2*
Page Top

files anchor.png

 
Page Top

compat anchor.png

  • Compatibility mode
  • /etc/passwd, /etc/shadow, /etc/group で + - をサポート.
     
Page Top

ldap anchor.png

Page Top

sss anchor.png

Page Top

systemd anchor.png

  • 新しい DNS リゾルバ.複数のネームサーバに同時にリクエストを投げたりできる.
  • インターフェイス毎のネームサーバを指定できたりもする.
  • systemd-resolved
    • /etc/systemd/resolvd.conf
       
Page Top

altfiles anchor.png

# git clone https://github.com/aperezdc/nss-altfiles.git
# cd nss-altfiles/
# ./configure --prefix=/usr --datadir=/etc/local --with-type=pwd,grp
# make
# make install
install -m 755 -d /usr/lib
install -m 755 libnss_altfiles.so.2 /usr/lib
# ln -s /usr/lib/libnss_altfiles.so.2 /usr/lib64/libnss_altfiles.so
# ldconfig
  • /etc/nsswitch.conf
    passwd: files altfiles
    group:  files altfiles
     

Front page   Freeze Diff Backup Copy Rename Reload   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)
Counter: 457, today: 2, yesterday: 0
Last-modified: 2021-07-12 (Mon) 11:08:20 (JST) (1024d) by iseki

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

59 user(s) are online (8 user(s) are browsing xpwiki)

Members: 0
Guests: 59

more...

Access Counter

Today : 1952195219521952
Yesterday : 7722772277227722
Total : 2343343323433433234334332343343323433433234334332343343323433433
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com