search for: getpwnam_r

Displaying 20 results from an estimated 128 matches for "getpwnam_r".

2019 Jan 21
3
force re-authentication when accessing different shares
...mbpasswd with unique password - no need for a corresponding useraccount in /etc/passwd - access to the corresponding shares should be independent from any domain (i.e. the share should be accessable via windows client) to come around the useraccount-restriction (as samba is getting information via getpwnam_r()) i think a nss module for database 'passwd' is necessary. i am starting to think that my implementation of _nss_<sourcename>_getpwnam_r() is wrong nevertheless, if you can think of any other solution without the need of interfacing with getpwnam - plz let me know! thx hari On Mo...
2016 Dec 28
2
Help with httpd userdir recovery
...bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); if (bufsize == -1) /* Value was indeterminate */ bufsize = 16384; /* Should be more than enough */ buf = malloc(bufsize); if (buf == NULL) { perror("malloc"); exit(EXIT_FAILURE); } s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result); if (result == NULL) { if (s == 0) printf("Not found\n"); else { errno = s; perror("getpwnam_r"); } exit(EXIT_FAILURE); } printf("Name: %s; UID: %l...
2019 Jan 21
2
force re-authentication when accessing different shares
.../data/samba/username_b, samba should know that the client which is connecting has not been authenticated for accessing this different share, and should require authentication. the selft written nss source (/etc/nsswitch.conf, additional source for database 'passwd') installs a handler for getpwnam_r() and returns a passwd struct. i am confident that the module is not the culprit for this issue as the password(hash) needs to be checked by smbpasswd backend anyway. thx in advance, hari On Sat, Jan 19, 2019 at 7:49 PM Robert Marcano via samba < samba at lists.samba.org> wrote: > On Fr...
2007 Aug 08
1
[fdo] error on cross compiling libdbus
List, I want to cross compiling libdbus for arm processor with Montavista toolchain. But I went into error. Says, checking for posix getpwnam_r... configure: error: cannot run test program while cross compiling Commmand I use is configure --host=arm-linux --prefix=/root/Desktop/bluez-3.13/dbus-glib-0.72 CC=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc AR=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vf...
2003 Nov 20
1
samba 3.0.0 freebsd
...all gotten the Samab 3.0 to integrate into the FreeBSD 5.1 Name Service switcher? Are there patches avaliable? Does anyone know where to get the FreeBSD nss api so I can try to fix the code my self? I keep getting the following errors in my logs NSSWITCH(nss_method_lookup): winbind, passwd, getpwnam_r, not found
2019 Jan 21
0
force re-authentication when accessing different shares
...a windows client) Is't this a reimplementation on winbind nss interface?. Why not just use winbind with one of it's mapping strategies. I am pretty sure it should work for standalone servers. > > to come around the useraccount-restriction (as samba is getting information > via getpwnam_r()) i think a nss module for database 'passwd' is necessary. > i am starting to think that my implementation of > _nss_<sourcename>_getpwnam_r() is wrong > > nevertheless, if you can think of any other solution without the need of > interfacing with getpwnam - plz let m...
2004 Sep 08
0
Postfix > sasl2 > pam > winbind
...pr 20 18:34:57 bert postfix/smtpd[2525]: NSSWITCH(nss_method_lookup): file, hosts, gethostbyaddr, not found Apr 20 18:34:57 bert postfix/smtpd[2525]: NSSWITCH(nss_method_lookup): file, hosts, gethostbyname, not found Apr 20 18:34:57 bert saslauthd[639]: NSSWITCH(nss_method_lookup): winbind, passwd, getpwnam_r, not found Apr 20 18:34:57 bert saslauthd[639]: NSSWITCH(nss_method_lookup): winbind, passwd, getpwnam_r, not found Apr 20 18:34:57 bert saslauthd[639]: DEBUG: auth_pam: pam_authenticate failed: authentication error Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, group, setgr...
2004 Sep 08
0
postfix > sasl > pam > winbind
...pr 20 18:34:57 bert postfix/smtpd[2525]: NSSWITCH(nss_method_lookup): file, hosts, gethostbyaddr, not found Apr 20 18:34:57 bert postfix/smtpd[2525]: NSSWITCH(nss_method_lookup): file, hosts, gethostbyname, not found Apr 20 18:34:57 bert saslauthd[639]: NSSWITCH(nss_method_lookup): winbind, passwd, getpwnam_r, not found Apr 20 18:34:57 bert saslauthd[639]: NSSWITCH(nss_method_lookup): winbind, passwd, getpwnam_r, not found Apr 20 18:34:57 bert saslauthd[639]: DEBUG: auth_pam: pam_authenticate failed: authentication error Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, group, setgr...
2016 Dec 28
0
Help with httpd userdir recovery
...f (bufsize == -1) /* Value was indeterminate */ > bufsize = 16384; /* Should be more than enough */ > > buf = malloc(bufsize); > if (buf == NULL) { > perror("malloc"); > exit(EXIT_FAILURE); > } > > s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result); > if (result == NULL) { > if (s == 0) > printf("Not found\n"); > else { > errno = s; > perror("getpwnam_r"); > } > exit(EXIT_FAI...
2005 Oct 20
1
high cpu load with 3.0.20b (not using ldap)
...key: files bootparams: files automount: files nis aliases: files (gdb) bt #0 0x403172a2 in __nis_hash () from /lib/tls/libc.so.6 #1 0x403187e6 in __nscd_cache_search () from /lib/tls/libc.so.6 #2 0x40317374 in nscd_getpw_r () from /lib/tls/libc.so.6 #3 0x40317662 in __nscd_getpwnam_r () from /lib/tls/libc.so.6 #4 0x402b92bd in getpwnam_r@@GLIBC_2.1.2 () from /lib/tls/libc.so.6 #5 0x402b8c81 in getpwnam () from /lib/tls/libc.so.6 #6 0x081f038c in sys_getpwnam (name=0x798716af "") at system.c:883 #7 0x081f4658 in getpwnam_alloc (name=0xbfffe500 "COLORLASER5QUOT...
2004 Sep 05
1
Segfault in Samba
...#11 0x40468365 in _nss_ldap_getservent_r () from /lib/libnss_ldap.so.2 > #12 0x40462bfa in winbindd_fd () from /lib/libnss_ldap.so.2 > #13 0x40463fca in winbindd_fd () from /lib/libnss_ldap.so.2 > #14 0x40464525 in winbindd_fd () from /lib/libnss_ldap.so.2 > #15 0x40465649 in _nss_ldap_getpwnam_r () from /lib/libnss_ldap.so.2 > #16 0x40233e76 in getpwnam_r () from /lib/libc.so.6 > #17 0x4023396f in getpwnam () from /lib/libc.so.6 > #18 0x081c72b1 in getpwnam_alloc () > #19 0x081c57b4 in map_username () > #20 0x081c5a4a in Get_Pwnam () > #21 0x0820fa55 in smb_getpwnam () &g...
2020 Jun 30
2
[Announce] Samba 4.11.10 Available for Download
Release Announcements --------------------- This is the latest stable release of the Samba 4.11 release series. Changes since 4.11.9 -------------------- o Jeremy Allison <jra at samba.org> * BUG 14374: Fix segfault when using SMBC_opendir_ctx() routine for share folder that contains incorrect symbols in any file name. o Ralph Boehme <slow at samba.org> * BUG 14350:
2020 Jun 30
2
[Announce] Samba 4.11.10 Available for Download
Release Announcements --------------------- This is the latest stable release of the Samba 4.11 release series. Changes since 4.11.9 -------------------- o Jeremy Allison <jra at samba.org> * BUG 14374: Fix segfault when using SMBC_opendir_ctx() routine for share folder that contains incorrect symbols in any file name. o Ralph Boehme <slow at samba.org> * BUG 14350:
2006 Jan 10
1
double segfault in smbd 3.0.21a
...libc_dlclose () from /lib/tls/libc.so.6 #10 0x4000c016 in _dl_catch_error () from /lib/ld-linux.so.2 #11 0x4026fc68 in __libc_dlsym () from /lib/tls/libc.so.6 #12 0x4024db81 in __nss_lookup_function () from /lib/tls/libc.so.6 #13 0x4024d8c3 in __nss_next () from /lib/tls/libc.so.6 #14 0x4020eb49 in getpwnam_r () from /lib/tls/libc.so.6 #15 0x4020e441 in getpwnam () from /lib/tls/libc.so.6 #16 0x081ec962 in sys_getpwnam () #17 0x081f0a7f in getpwnam_alloc () #18 0x081eefbb in Get_Pwnam_internals () #19 0x081ef29c in Get_Pwnam_alloc () #20 0x082385ca in smb_getpwnam () #21 0x08238489 in fill_sam_account (...
2016 Dec 28
4
Help with httpd userdir recovery
On 12/27/2016 07:06 PM, John Fawcett wrote: > On 12/28/2016 12:34 AM, Robert Moskowitz wrote: >> >> On 12/27/2016 05:44 PM, John Fawcett wrote: >>> That error should be caused by having MultiViews options but incorrect >>> permissions (711 instead of 755) on the directory. >> I just did chmod -R 755 /home/rgm/public_html and no change in behavior. >>
2004 Jul 01
7
3.0.4: smbd's + nscd's = 100% CPU; load > 4
Hi Everyone, the new 3.0.4 Samba installation seems to work find except that from time to time but at least a couple of times a day one or more smbd processes start running at 20%-40% CPU each and 6 nscd processes then share the remaining CPU power. System 70%-80% users the rest 20%-30%. Load rises fast to over 4. I'm sure that each such process is just idling, but why does it engage so much
2019 Jan 21
0
force re-authentication when accessing different shares
...t share, and should require > authentication. If you are connecting from a Windows computer that already has a connection open, it will use that connection. > > the selft written nss source (/etc/nsswitch.conf, additional source > for database 'passwd') installs a handler for getpwnam_r() and returns > a passwd struct. i am confident that the module is not the culprit > for this issue as the password(hash) needs to be checked by smbpasswd > backend anyway. > You appear to be trying to do the reverse of what 'idmap_nss' does, can I ask why ? Are the Windows co...
2009 Mar 24
1
[PATCH] "Include" option for ssh configs
...o, Attached is a patch to add support for an "include" file in ssh configs. It is written against openssh-5.2p1. ## ~/.ssh/config Include ~/.ssh/config.contrib ## end - Leading ~/ expands to $HOME according to getpwuid_r?. - Leading ~username expands to $HOME for username according to getpwnam_r. - Fallbacks to /home/$USER are implemented for when struct passwd.pw_dir is NULL? after these calls. Files are parsed immediately in place and bad option counts are unique to each file. In this implementation, files that cannot be opened are error()d and ssh exits. There is rough documentatio...
2005 Apr 21
0
smb PANIC: internal error
...+0x120) [0x820c4d0] smbd[17958]: #1 /usr/sbin/smbd(smb_panic+0x26) [0x820c6a6] smbd[17958]: #2 /usr/sbin/smbd [0x81f7070] smbd[17958]: #3 [0xffffe420] smbd[17958]: #4 /lib/tls/libc.so.6 [0xb7d31ff4] smbd[17958]: #5 /lib/tls/libc.so.6 [0xb7d322e2] smbd[17958]: #6 /lib/tls/libc.so.6(getpwnam_r+0x14d) [0xb7cd3bed] smbd[17958]: #7 /lib/tls/libc.so.6(getpwnam+0x91) [0xb7cd35b1] smbd[17958]: #8 /usr/sbin/smbd(sys_getpwnam+0x1d) [0x81f9ddd] smbd[17958]: #9 /usr/sbin/smbd(getpwnam_alloc+0x5a) [0x81feb0a] smbd[17958]: #10 /usr/sbin/smbd(Get_Pwnam+0x15f) [0x81fcbdf] smbd[17958]: #...
2007 Apr 30
0
PANIC: internal error in samba rhel4-u4
...l(0, 0)] lib/util.c:smb_panic2(1512) BACKTRACE: 26 stack frames: #0 smbd(smb_panic2+0x8a) [0xceb290] #1 smbd(smb_panic+0x19) [0xceb4bc] #2 smbd [0xcd7c9f] #3 /lib/tls/libc.so.6 [0x448898] #4 /lib/tls/libc.so.6 [0x5180f4] #5 /lib/tls/libc.so.6 [0x518452] #6 /lib/tls/libc.so.6(getpwnam_r+0x5a) [0x4aaa8a] #7 /lib/tls/libc.so.6(getpwnam+0x91) [0x4aa5b1] #8 smbd(sys_getpwnam+0x1d) [0xcda970] #9 smbd(getpwnam_alloc+0x1d) [0xcdec80] #10 smbd(make_server_info_sam+0x52) [0xd2d02a] #11 smbd [0xd26493] #12 smbd [0xd2710a] #13 smbd [0xd24349] #14 smbd [0xd2e2ee] #1...