- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- "wbinfo -u" works but "getent passwd" does not
Operating System - Linux
1820703
Members
2528
Online
109627
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2008 11:49 AM
07-23-2008 11:49 AM
"wbinfo -u" works but "getent passwd" does not
Hi,
First off thanks for viewing this and offering suggestions.
What I can do:
authenticate via kerberos
join the ADS domain
=> gives message "Joined SERVER to MYDOMAIN"
run wbinfo -u & -g
=> returns full list of AD users & groups
What seems odd:
wbinfo -m does not return the name of the default domain in any of my config files
What I can't do:
running getent passwd does not return AD users, only local users
My nsswitch.conf file:
passwd: files winbind
shadow: files winbind
group: files winbind
ethers: files
netmasks: files
networks: files
protocols: files winbind
rpc: files
services: files winbind
netgroup: files winbind
publickey: nisplus
automount: files winbind
aliases: files nisplus
My smb.conf file:
workgroup = MYWORKGROUP
realm = MYDOMAIN
security = ads
password server = 192.168.111.2
server string = Linux Server
#Samba Performance
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
client schannel = no
preferred master = no
log level = 3
log file = /var/log/samba/%m.log
max log size = 50
printcap name = cups
printing = cups
# Winbind Settings
winbind separator = +
winbind use default domain = yes
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
winbind cache time = 10
pass db backend = tdbsam
template shell = /bin/bash
pam password change = yes
template homedir = /home/mydomain/%U
server signing = auto
wins server = 192.168.111.2
dns proxy = no
[samba]
comment = My Samba Share
path = /shares/samba
writeable = yes
[homes]
comment = Home Directories
path = /home/mydomain/%U
root preexec = usr/local/sbin/mkhomedir.sh %U
valid users = %S
writeable = yes
[printers]
comment = All Printers
path = /car/spool/cups
browseable = no
printable = yes
guest ok = yes
[schema]
comment = V8 Schema
path = /var/www/html/schema
writeable = yes
guest ok = yes
of course MYWORKGROUP refers to the name of the workgroup in use and MYDOMAIN refers to the Domain with the ADS.
Any ideas on this one?
From what I've seen, it's most commonly a nsswitch.conf fie problem but I've tripple checked that.
Thanks for your help.
First off thanks for viewing this and offering suggestions.
What I can do:
authenticate via kerberos
join the ADS domain
=> gives message "Joined SERVER to MYDOMAIN"
run wbinfo -u & -g
=> returns full list of AD users & groups
What seems odd:
wbinfo -m does not return the name of the default domain in any of my config files
What I can't do:
running getent passwd does not return AD users, only local users
My nsswitch.conf file:
passwd: files winbind
shadow: files winbind
group: files winbind
ethers: files
netmasks: files
networks: files
protocols: files winbind
rpc: files
services: files winbind
netgroup: files winbind
publickey: nisplus
automount: files winbind
aliases: files nisplus
My smb.conf file:
workgroup = MYWORKGROUP
realm = MYDOMAIN
security = ads
password server = 192.168.111.2
server string = Linux Server
#Samba Performance
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
client schannel = no
preferred master = no
log level = 3
log file = /var/log/samba/%m.log
max log size = 50
printcap name = cups
printing = cups
# Winbind Settings
winbind separator = +
winbind use default domain = yes
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
winbind cache time = 10
pass db backend = tdbsam
template shell = /bin/bash
pam password change = yes
template homedir = /home/mydomain/%U
server signing = auto
wins server = 192.168.111.2
dns proxy = no
[samba]
comment = My Samba Share
path = /shares/samba
writeable = yes
[homes]
comment = Home Directories
path = /home/mydomain/%U
root preexec = usr/local/sbin/mkhomedir.sh %U
valid users = %S
writeable = yes
[printers]
comment = All Printers
path = /car/spool/cups
browseable = no
printable = yes
guest ok = yes
[schema]
comment = V8 Schema
path = /var/www/html/schema
writeable = yes
guest ok = yes
of course MYWORKGROUP refers to the name of the workgroup in use and MYDOMAIN refers to the Domain with the ADS.
Any ideas on this one?
From what I've seen, it's most commonly a nsswitch.conf fie problem but I've tripple checked that.
Thanks for your help.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2008 02:03 PM
07-23-2008 02:03 PM
Re: "wbinfo -u" works but "getent passwd" does not
Amazingly enough this obscure little site gave me the answer. I'll paste the URL below so that anyone that encounters the same problem can find the solution. Somehow the Winbind Daemon got "confused."
http://www.aerospacesoftware.com/LinuxActiveDirectory.html
http://www.aerospacesoftware.com/LinuxActiveDirectory.html
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP