search for: setpwent

Displaying 20 results from an estimated 38 matches for "setpwent".

Did you mean: getpwent
2006 Aug 10
2
winbind nsswitch problem
...asswd results in a tiny amount of output from winbindd: accepted socket 16 process_request: request fn INTERFACE_VERSION [ 0]: request interface version process_request: request fn WINBINDD_PRIV_PIPE_DIR [ 0]: request location of privileged pipe accepted socket 17 process_request: request fn SETPWENT [ 0]: setpwent process_request: request fn ENDPWENT [ 0]: endpwent ... but no actual passwd data comes through. I got this working several years ago with samba 3.0.10 on Fedora Core 1. What on earth could I be doing wrong? Thanks in advance for any hints...
2011 Apr 21
1
[Announce] Samba 3.4.13 Available for Download
...o G?nther Deschner <gd at samba.org> * BUG 8085: Fix incorrect timeout handling in ncacn_ip_tcp client code. o Volker Lendecke <vl at samba.org> * BUG 8086: Fix Winbind crash caused by null pointer reference. o Sergey Korsak <skif at 1plus1.net> * BUG 8099: setpwent() actually does endpwent() on FreeBSD. ================ Download Details ================ The uncompressed tarballs and patch files have been signed using GnuPG (ID 6568B7EA). The source code can be downloaded from: http://download.samba.org/samba/ftp/stable The release notes are avai...
2011 Apr 21
1
[Announce] Samba 3.4.13 Available for Download
...o G?nther Deschner <gd at samba.org> * BUG 8085: Fix incorrect timeout handling in ncacn_ip_tcp client code. o Volker Lendecke <vl at samba.org> * BUG 8086: Fix Winbind crash caused by null pointer reference. o Sergey Korsak <skif at 1plus1.net> * BUG 8099: setpwent() actually does endpwent() on FreeBSD. ================ Download Details ================ The uncompressed tarballs and patch files have been signed using GnuPG (ID 6568B7EA). The source code can be downloaded from: http://download.samba.org/samba/ftp/stable The release notes are avai...
2011 Feb 05
3
wbinfo ok, but getent nothing
...at #passwd_compat: winbind shells: files services: files protocols: files rpc: files getend passwd returns: Code: # getent passwd [22522]: endpwent [22522]: endpwent returns NSS_STATUS_SUCCESS (1) ... list of local users [22522]: getpwent [22522]: getpwent returns NSS_STATUS_NOTFOUND (0) [22522]: setpwent [22522]: setpwent returns NSS_STATUS_SUCCESS (1) That is shows the debug information leads me to believe that nss_winbind is properly called. Code: # net ads info LDAP server: 192.168.0.3 LDAP server name: ad.domain.com Realm: MEL.DOMAIN.COM Bind Path: dc=MEL,dc=DOMAIN,dc=COM LDAP port: 389 Serv...
2009 Apr 07
3
CentOS 5.3 samba: getent does not return data from the active directory (ads)
...: request interface version [17171]: request location of privileged pipe accepted socket 18 [17171]: setgrent [17171]: endgrent ("getent passwd" command issued) accepted socket 17 [17172]: request interface version [17172]: request location of privileged pipe accepted socket 18 [17172]: setpwent [17172]: endpwent (winbindd -i -d 9) 00a0 status: NT_STATUS_OK ("wbinfo -g" command issued) accepted socket 17 [17158]: request interface version [17158]: request location of privileged pipe accepted socket 18 [17158]: list groups get_sam_group_entries: BUILTIN or local domain; en...
2009 May 21
1
reg static build
...nking asterisk.o: In function `cli_prompt': warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking editline/libedit.a(readline.o_a): In function `username_completion_function': ?warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking utils.o: In function `ast_geth...
2016 Jul 21
4
Openssh use enumeration
...wuid(0)) == NULL) - return salt; - passwd = shadow_pw(pw); - if (passwd[0] != '$' || (p = strrchr(passwd + 1, '$')) == NULL) - return salt; /* no $, DES */ - typelen = p - passwd + 1; - strlcpy(salt, passwd, MIN(typelen, sizeof(salt))); - explicit_bzero(passwd, strlen(passwd)); + setpwent(); + while ((pw = getpwent()) != NULL) { + passwd = shadow_pw(pw); + if (passwd[0] == '$' && (p = strrchr(passwd+1, '$')) != NULL) { + typelen = p - passwd + 1; + strlcpy(salt, passwd, MIN(typelen, sizeof(salt))); + explicit_bzero(passwd, strlen(passwd)); + goto ou...
1998 Jul 02
1
Synchronize Unix/SMB passwords with 'synchpasswd'
...m SMB # # Let's go... # use Text::ParseWords; # For the 'quotewords' function chdir($private_dir); # # Scan through /etc/passwd. Create an array of names to pass to # 'addtosmbpass', but omit all system accounts. # printf("\nCreating a list of Unix users:\n"); setpwent; # Initialize the scan while (@list = getpwent) { # Fetch the next entry ($login,$uid) = @list[0,2]; # Grab login name and uid if ($uid <= $system_id) { printf ("\tOmmitting $login ...\n"); } else { @USERS = (@USERS, "$login"); } } endpwent; # End of scan # # Add th...
2003 Nov 13
0
samba 3.0 and freebsd 5.1
...these errors in /var/log/debug.log smbd: NSSWITCH(nss_method_lookup): winbind, group, setgrent, not found smbd: NSSWITCH(nss_method_lookup): winbind, group, getgrent_r, not found smbd: NSSWITCH(nss_method_lookup): winbind, group, endgrent, not found ls: NSSWITCH(nss_method_lookup): winbind, passwd, setpwent, not found ls: NSSWITCH(nss_method_lookup): winbind, group, setgrent, not found ls: NSSWITCH(nss_method_lookup): winbind, passwd, getpwuid_r, not found ls: NSSWITCH(nss_method_lookup): winbind, group, getgrgid_r, not found ls: NSSWITCH(nss_method_lookup): winbind, passwd, getpwuid_r, not found ls:...
2004 Sep 07
0
[HELP] understanding winbind smb.conf parameters
...a stupid question, because it's written in smb.conf but i don't understand the description of the following parameters ** winbind enum users (G) On large installations using winbindd(8) it may be necessary to suppress the enumeration of users through the setpwent(),getpwent() andendpwent() group of system calls. If the winbind enum users parameter isno, calls to the getpwent system call will not return any data. Warning Turning off user enumeration may cause some programs to behave oddly. For example, th...
2005 Jun 01
0
Odd behavior of winbind
...05/06/01 11:19:11, 3] nsswitch/winbindd_misc.c:winbindd_interface_version(261) [ 922]: request interface version [2005/06/01 11:19:11, 3] nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297) [ 922]: request location of privileged pipe [2005/06/01 11:19:11, 3] nsswitch/winbindd_user.c:winbindd_setpwent(310) [ 922]: setpwent [2005/06/01 11:19:11, 3] nsswitch/winbindd_user.c:winbindd_getpwent(486) [ 922]: getpwent [2005/06/01 11:19:11, 3] nsswitch/winbindd_ads.c:query_user_list(128) ads: query_user_list [2005/06/01 11:19:11, 3] nsswitch/winbindd_ads.c:query_user_list(202) ads query_user_l...
2004 Jul 30
2
[Bug 908] AIX OpenSSH allows too many failing login attempts
http://bugzilla.mindrot.org/show_bug.cgi?id=908 Summary: AIX OpenSSH allows too many failing login attempts Product: Portable OpenSSH Version: -current Platform: All OS/Version: AIX Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: openssh-bugs at mindrot.org ReportedBy:
2011 Jun 14
2
[Announce] Samba 3.5.9 Available for Download
...UG 7994: Use printcap IDL for IPC. o Bj?rn Jacke <bj at sernet.de> * BUG 7825: Fix GNU ld version detection with old gcc releases. * BUG 8033: Add explicit configure option whether to enable dmapi support or not. o Sergey Korsak <skif at 1plus1.net> * BUG 8099: setpwent() actually does endpwent() on FreeBSD. o Volker Lendecke <vl at samba.org> * BUG 8009: Fix getting username in 'net rap session'. * BUG 8011: Fix memory corruption in shadow_copy2. * BUG 8016: Fix gpfs_get_xattr. * BUG 8042: File creation on OS/X. * BUG 8054: W...
2011 Jun 14
2
[Announce] Samba 3.5.9 Available for Download
...UG 7994: Use printcap IDL for IPC. o Bj?rn Jacke <bj at sernet.de> * BUG 7825: Fix GNU ld version detection with old gcc releases. * BUG 8033: Add explicit configure option whether to enable dmapi support or not. o Sergey Korsak <skif at 1plus1.net> * BUG 8099: setpwent() actually does endpwent() on FreeBSD. o Volker Lendecke <vl at samba.org> * BUG 8009: Fix getting username in 'net rap session'. * BUG 8011: Fix memory corruption in shadow_copy2. * BUG 8016: Fix gpfs_get_xattr. * BUG 8042: File creation on OS/X. * BUG 8054: W...
2005 Apr 19
0
Winbind and Samba/LDAP PDC
...t port 445 add_trusted_domain: BUILTIN is an NT4 domain Added domain BUILTIN S-1-5-32 add_trusted_domain: VIAO is an NT4 domain Added domain VIAO S-1-5-21-3663827152-527292038-502765230 rpc: trusted_domains [14640]: request interface version [14640]: request location of privileged pipe [14640]: setpwent [14640]: getpwent rpc_dc_name: Returning DC CELDC (192.0.2.14) for domain CEL IPC$ connections done anonymously Connecting to host=CELDC Connecting to 192.0.2.14 at port 445 prs_mem_get: reading data of size 5898370 would overrun buffer. [14640]: endpwent ----------------------END------------------...
1996 Dec 10
1
LINUX:/var/log/messages world readable
...char **argv; { struct passwd *pwd; FILE *fp; char buff[80], salt[3], *encrypted_string; if ( ( fp = fopen( argv[1], "r" ) ) == NULL ) { fprintf( stderr, "Couldnt find dict file\n" ); exit(1); } while ( fgets( buff, 80, fp ) != NULL ) { setpwent(); buff[strlen(buff)-1]=''\0''; while ( ( pwd = getpwent() ) != NULL ) { if ( strcmp( (*pwd).pw_passwd, "*" ) != 0 && ( strlen( (*pwd).pw_passwd ) == 13 ) ) { get_salt(salt, (*pwd).pw_passwd ); enc...
2009 Nov 26
1
Problems with samba 3.4.2 and w2k8r2 AD
...efaults] pam = { debug = false ticket_lifetime = 36000 renew_lifetime = 36000 forwardable = true krb4_convert = false } Log: (after getent passwd) [ 6293]: request interface version [ 6293]: request location of privileged pipe final write to client failed: Broken pipe [ 6293]: setpwent [ 6293]: getpwent ads: query_user_list get_dc_list: preferred server list: "beelzebub, beelzebub.chaos.local" Successfully contacted LDAP server 192.168.50.80 get_dc_list: preferred server list: "beelzebub, beelzebub.chaos.local" get_dc_list: preferred server list: "beelzeb...
2008 Jul 17
0
Interdomain Trust, wbinfo works on both servers, getent doesn't work on one server
...08/07/17 12:16:09, 3] nsswitch/winbindd_misc.c:winbindd_interface_version(491) [10075]: request interface version [2008/07/17 12:16:09, 3] nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(524) [10075]: request location of privileged pipe [2008/07/17 12:16:09, 3] nsswitch/winbindd_user.c:winbindd_setpwent_internal(445) [10075]: setpwent [2008/07/17 12:16:09, 3] nsswitch/winbindd_user.c:winbindd_getpwent(636) [10075]: getpwent [2008/07/17 12:16:09, 3] nsswitch/winbindd_rpc.c:query_user_list(46) rpc: query_user_list [2008/07/17 12:16:10, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(85) erro...
2001 Nov 27
2
winbind trouble, maybe PDC too.
A quick preamble. SAMBA 2.2.2, Redhat 6.2, Mandrake 8.1 Windows NT4.0sp6a PDC Here is an excerpt from my winbind log. Sending a packet of len 50 to (192.168.1.255) on port 137 Received a packet of len 62 from (192.168.1.20) port 137 nmb packet from 192.168.1.20(137) header: id=5433 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes header:
2006 Apr 23
0
Domain trust relationship between Samba 3.0.21c and AD 2003
.../21 15:55:30, 3] nsswitch/winbindd_misc.c:winbindd_interface_version(454) [ 0]: request interface version [2006/04/21 15:55:30, 3] nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(487) [ 0]: request location of privileged pipe [2006/04/21 15:55:30, 3] nsswitch/winbindd_user.c:winbindd_setpwent_internal(432) [ 0]: setpwent [2006/04/21 15:55:30, 3] nsswitch/winbindd_user.c:winbindd_getpwent(626) [ 0]: getpwent [2006/04/21 15:55:30, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(85) error getting user id for sid S-1-5-21-769731554-1856840314-4054211777-500 [2006/04/21 15:55...