search for: getpwnam

Displaying 20 results from an estimated 609 matches for "getpwnam".

2003 Apr 09
0
One user with a problem accessing shares
...#39;ve now broken all their access to the RH server. If they try to log in via ssh it keeps asking for a password. If root tries to su to that user account, they get an account does not exist message. /usr/sbin/winbindd -i -d4 shows this while the user is trying to connect to the share [13614]: getpwnam LOBRECHT+rlobrecht error getting user info for user '[LOBRECHT]\[rlobrecht]' Here's the full output from /usr/sbin/winbindd -i -d4 [13614]: getpwnam +nobody user 'nobody' does not exist [13614]: getgroups nobody [13614]: getgroups nobody [13614]: getpwnam LOBRECHT+rlobrecht [1...
2001 Aug 15
2
PAM and getpwnam [ struct passwd *getpwnam(const char * name) ]
...can create local UNIX user accounts from information in NDS, and it works perfect with login, gdm and telnet. But not with openssh (2.5 and 2.9). It works perfect if the user already is in /etc/passwd, but the first time he logs on he doesn't exist there. In that case openssh call the function getpwnam to see if the user exist at all, and if he doesn't the sshd refuse the user to login. Aaarg, I have tried one whole day to make some simple patch, but I am to stupid. Hence, I want pam_ncp_auth to add the user's line in /etc/passwd before openssh make the call to getpwnam. Perhaps that is...
2005 May 06
1
idmap_sid_to_uid is not get called?
...7, 2, pid=26100] lib/util_sock.c:open_socket_out(789) error connecting to 10.123.130.16:445 (Connection refused) [2005/05/05 21:21:47, 3, pid=26100] lib/util_sock.c:open_socket_out(752) Connecting to 10.123.130.16 at port 139 [2005/05/05 21:21:47, 3, pid=26100] nsswitch/winbindd_user.c:winbindd_getpwnam(124) [26876]: getpwnam qadomain\kuku [2005/05/05 21:21:47, 3, pid=26100] nsswitch/winbindd_rpc.c:msrpc_name_to_sid(291) rpc: name_to_sid name=kuku [2005/05/05 21:21:47, 3, pid=26100] nsswitch/winbindd_rpc.c:msrpc_name_to_sid(300) name_to_sid [rpc] kuku for domain QADOMAIN [2005/05/05 21:21:47...
2004 Mar 24
2
getpwnam() fails!
...ve ldap master ldap slave 192.168.4.0-------192.168.1.0--------192.168.3.0 BDC-1 PDC BDC-2 PDC and BDC-2 are fine but on BDC-1 I get the following errors: - id(1) only return values for system password database users - machine logs indicates a problem with getpwnam(): [2004/03/24 22:59:43, 1, pid=68224, effective(0, 0), real(0, 0)] auth/auth_util.c:make_server_info_sam(821) User Guest in passdb, but getpwnam() fails! In this situation of course nothing works properly at the BDC-1 site. I really tried to make configuration identical on both BDC's b...
2017 May 18
2
feature request: use HOME before getpwnam() in misc.c
it's really^3 annoying that no matter the value of $HOME, that tilde_expand_filename() only looks at getpwnam() and friends instead of at least trying getenv("HOME"). What is the use case? HOME=longpath_to_config1 ssh -i ~/.ssh/key1 HOME=longpath_to_config2 ssh -i ~/.ssh/key2 but getpwnam() defeats this by always accessing what's in the passwd file. So .ssh/known_hosts is likewise read/wr...
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
...am_internals(). Lowercase first order will get domain user (UUQ/ztest) but local account(ZTEST). local_password_change() pdb_getsampwnam() smbpasswd_getsampwnam() build_sam_account() Get_Pwnam_alloc() Get_Pwnam_internals() <-- turn "ZTEST" to "ztest" getpwnam_alloc_cached() getpwnam() (nss_winbinadd) winbindd_getpwnam_send() parse_domain_user() <-- add "UUQ" to domain and namespace. assume_domain() When samba role is DC , "winbind use default domain" does not work in assume_domain...
2004 Feb 19
0
Windbindd restarts and lost uids
..., because this causes another problem that is a killer for us. ---- First I'll give an abbreviated description of what I'm about to describe. I hope this will make the next paragraph easier to follow: with user testuser1 and domain TST: 0) client tries to access a global share 1) client GETPWNAM request for tst+testuser1 to the Samba server 2) client GETPWNAM request for TST+testuser1 to the Samba server 3) client GETPWNAM request for TST+TESTUSER1 to the Samba server 4) client GETPWNAM request for testuser1 to the Samba server 5) client GETPWNAM request for TESTUSER1...
2005 May 08
2
Samba / AD / Winbind issues
...e server that I'm looking for the list from. I get the same results using localhost and 127.0.0.1 as well. Also I get the same result when I run this command on another Linux box asking for the same info... The Winbind trace looks like this. user 'tuser2' does not exist [10175]: getpwnam D1+TUSER2 rpc: name_to_sid name=TUSER2 name_to_sid [rpc] TUSER2 for domain D1 Connected to LDAP server 192.168.14.168 got ldap server name media-1@D1.SANDTEST.COM, using bind path: dc=D1,dc=SANDTEST,dc=COM IPC$ connections done anonymously Connecting to host=MEDIA-1 Connecting to 192.168.14.168 at...
2006 Aug 09
3
[Bug 1215] sshd requires entry from getpwnam for PAM accounts
http://bugzilla.mindrot.org/show_bug.cgi?id=1215 Summary: sshd requires entry from getpwnam for PAM accounts Product: Portable OpenSSH Version: 4.3p2 Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: PAM support AssignedTo: bitbucket at mindrot.org Repor...
2004 Mar 05
1
getpwnam() fails! (with working nss_ldap setup)
Hi list, I've seen this error now many times (at my own setup and in the archives): sam_account_ok: Checking SMB password for user Simon Dassow [2004/03/05 12:54:19, 1] auth/auth_util.c:make_server_info_sam(821) User Simon Dassow in passdb, but getpwnam() fails! But: # id 'Simon Dassow' uid=1000(Simon Dassow) gid=513(Domain Users) groups=513(Domain Users), 512(Domain Admins) nss_ldap _is_ working... to verify this from another place (i'm using FreeBSD so there is no getent): # perl -e 'print join(" - ",getpwnam("Si...
2005 Jun 11
1
strange getpwnam issue
...mba 3.0.14a installed on solaris9 os. i need to allow users login system by windows domain authorization. winbindd/pam_winbind compiled installed and working. but, one pam module (pam_dhkeys) fail all pam stack when try to obtain userinfo about windows domain users. small investigate show that getpwnam() result with windows user as parameter different from unix user. for example: #perl -e "print getpwnam('unixuser');" return "unixuser:passwordHASHreplaced:vv:vv:/home/unixuser:/bin/sh" #perl -e "print getpwnam('winduser');" return "vlad:x:vv:...
2004 Nov 30
2
getpwuid vs. getpwnam
...little deeper, I found that, in the client modules ssh.c and tildexpand.c, it uses the call getpwuid(uid) as the basis for determining what the user's home directory is. In my case, this resolves to / instead of /export/home/rjohn. Wouldn't it be more appropriate to use something like getpwnam(getenv("LOGNAME")) instead ? Since the login program itself (in both Linux and Solaris) sets LOGNAME, it's a reasonably safe assumption that it will get set correctly. Even if it's not set, the program could check that there's a value in LOGNAME, and if there isn't, fal...
2003 May 19
0
[PATCH] getpwnam() implementation in tftpd.c
Hi, This patch implements a minimal getpwnam() function in tftpd.c. The reason for the patch is that I needed tftpd to work in my embedded system, which are without libnss*. The patch has been tested, and works for me. Please consider it. Best regards, jules -- Jules Colding <JuBColding at yorkref.com> York Refrigeration diff -...
2004 Nov 17
1
User Administrator in passdb, but getpwnam() fails when trying to add XP machine to smb/ldap domain
...when I try to add the computer using the settings in XP, when prompted with username and password I use the administrator and password set preveiosly. this results in failure and log reports: [2004/11/17 17:59:25, 1] auth/auth_util.c:make_server_info_sam(822) User Administrator in passdb, but getpwnam() fails! [2004/11/17 17:59:25, 0] auth/auth_sam.c:check_sam_security(306) check_sam_security: make_server_info_sam() failed with 'NT_STATUS_NO_SUCH_USER' [2004/11/17 17:59:25, 0] passdb/pdb_ldap.c:ldapsam_search_one_group(1982) ldapsam_search_one_group: Problem during the LDAP search: L...
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
...t domain > user (UUQ/ztest) but local account(ZTEST). > > local_password_change() > pdb_getsampwnam() > smbpasswd_getsampwnam() > build_sam_account() > Get_Pwnam_alloc() > Get_Pwnam_internals() <-- turn "ZTEST" to "ztest" > getpwnam_alloc_cached() > getpwnam() > (nss_winbinadd) > winbindd_getpwnam_send() > parse_domain_user() <-- add "UUQ" to domain and namespace. > assume_domain() > > When samba role is DC , "winbind use default domain&q...
2017 Aug 22
1
Setup of Samba with Solaris 11.3 to provide Unix File Shares to Windows Users
Does mdecker exist in AD ? => Yes root at solaris1:~# getent passwd "MYDOM.ADS\\mdecker" mdecker:*:13767:613::/home/mdecker:/bin/bash winbind log: getpwnam MYDOM.ADS\mdecker wb_request_done[24254:GETPWNAM]: NT_STATUS_OK Does 'getent passwd mdecker' work ? => No getent passwd mdecker getpwnam mdecker winbindd_getpwnam: My domain -- rejecting getpwnam() for MYDOM\mdecker. Could not convert sid S-0-0: NT_STATUS_NO_SUCH_USER wb_request_done...
2010 Oct 20
1
Samba 3.5.6 pam problems
...12:39:25.912161, 3] winbindd/winbindd_pam.c:1768(winbindd_pam_auth_crap) [ 2329]: pam auth crap domain: [SAMBATEST] user: testuser But when I try to ssh into the samba server as testuser the authentication fails, the winbindd log entries are: [2010/10/20 12:41:39.712313, 3] winbindd/winbindd_getpwnam.c:55(winbindd_getpwnam_send) getpwnam testuser [2010/10/20 12:41:41.208210, 3] winbindd/winbindd_misc.c:352(winbindd_interface_version) [ 6462]: request interface version [2010/10/20 12:41:41.208378, 3] winbindd/winbindd_misc.c:385(winbindd_priv_pipe_dir) [ 6462]: request location of privil...
2015 Nov 27
1
Failed to find authenticated user via getpwnam(), denying access
...sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2015/11/27 19:09:26.201658, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2015/11/27 19:09:26.201780, 3] ../source3/auth/auth_util.c:1247(check_account) Failed to find authenticated user TSNR\administrator via getpwnam(), denying access. [2015/11/27 19:09:26.201846, 2] ../source3/auth/auth.c:288(auth_check_ntlm_password) check_ntlm_password: Authentication for user [Administrator] -> [Administrator] FAILED with error NT_STATUS_NO_SUCH_USER [2015/11/27 19:09:26.201893, 2] ../auth/gensec/spnego.c:743(gensec...
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
My system is not only for CIFS/SMB/domain features , sometime I need to disable DC so I have to keep local user in /etc/passwd. I have download samba source code and build it. I modify the order of getpwnam call in source3/lib/username.c then solve the problem. I have checked the following list : https://lists.samba.org/archive/samba-technical/2008-March/058508.html I think this is same problem. According this commit, I don't know why this commit changed the order of getpwnam call. https://git.s...
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
...t; > local_password_change() > > > pdb_getsampwnam() > > > smbpasswd_getsampwnam() > > > build_sam_account() > > > Get_Pwnam_alloc() > > > Get_Pwnam_internals() <-- turn "ZTEST" to "ztest" > > > getpwnam_alloc_cached() > > > getpwnam() > > > (nss_winbinadd) > > > winbindd_getpwnam_send() > > > parse_domain_user() <-- add "UUQ" to domain and > > > namespace. assume_domain() > > > > > > W...