Neil Price
2019-May-14 19:11 UTC
[Samba] "getent passwd" works, "getent passwd username" does not
Domain member server (Debian stretch with 4.8 from the Van Belle repo) getent passwd| grep nprice GIBB\nprice:*:1001104:1000513::/home/GIBB/nprice:/bin/false getent passwd GIBB\\nprice (returns nothing) getent passwd 1001104 also returns nothing wbinfo -u works fine wbinfo --uid-info 1001104 GIBB\nprice:*:1001104:1000513::/home/GIBB/nprice:/bin/false wbinfo -i GIBB\\nprice GIBB\nprice:*:1001104:1000513::/home/GIBB/nprice:/bin/false log files on level 5 do not see any errors smb.conf: [global] log file = /var/log/samba/log.%m logging = file map to guest = Bad User max log size = 1000 panic action = /usr/share/samba/panic-action %d realm = AD.GIBB.CO.ZA security = ADS server role = member server username map = /etc/samba/user.map winbind enum groups = Yes winbind enum users = Yes winbind refresh tickets = Yes winbind request timeout = 120 workgroup = GIBB idmap config gibb : range = 1000000-1599999 idmap config gibb : backend = rid idmap config * : range = 3000-7999 idmap config * : backend = tdb
Rowland penny
2019-May-14 19:30 UTC
[Samba] "getent passwd" works, "getent passwd username" does not
On 14/05/2019 20:11, Neil Price via samba wrote:> Domain member server (Debian stretch with 4.8 from the Van Belle repo) > > getent passwd| grep nprice > > GIBB\nprice:*:1001104:1000513::/home/GIBB/nprice:/bin/false > > getent passwd GIBB\\nprice > > (returns nothing)Now that is weird, it is usually 'getent password' returns nothing ;-) Just one thought, because '\n' is a linefeed, it might just be that, so try <getent password 'GIBB\nprice'>> > getent passwd 1001104 also returns nothingThat should also work Rowland
Neil Price
2019-May-15 07:20 UTC
[Samba] "getent passwd" works, "getent passwd username" does not
On 2019/05/14 21:30, Rowland penny via samba wrote:> >> getent passwd GIBB\\nprice >> >> (returns nothing) > > > Now that is weird, it is usually 'getent password' returns nothing ;-) > > Just one thought, because '\n' is a linefeed, it might just be that, > so try <getent password 'GIBB\nprice'> >Nothing. I think maybe a fresh install Windows style is needed?
Maybe Matching Threads
- "getent passwd" works, "getent passwd username" does not
- AD member server, some users suddenly can only connect to shares via ip address
- getent group fails on member server after upgrade to 3.5.5
- Joining uneven datasets
- Debian Lenny 3.5.3 packages pam-auth-update