search for: setgrent

Displaying 13 results from an estimated 13 matches for "setgrent".

Did you mean: getgrent
2003 Nov 13
0
samba 3.0 and freebsd 5.1
...ros working fine. I get all of my users when I do a wbinfo -u I copied the correct nss libs to /usr/lib If anyone has any Info I'd greatly appreciate it. I know it has something to do nsswitch because I get 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: N...
2009 Apr 07
3
CentOS 5.3 samba: getent does not return data from the active directory (ads)
...ous commands that interact with it. The commands are noted in (parenthesis). (winbindd -i -d 9) 00a0 status: NT_STATUS_OK ("getent group" command issued) accepted socket 17 [17171]: 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...
2006 Oct 17
1
winbind: wbinfo -g sees "domain users", getent group does not
...6/10/17 14:08:48, 3] nsswitch/winbindd_misc.c:winbindd_interface_version(261) [10927]: request interface version [2006/10/17 14:08:48, 3] nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297) [10927]: request location of privileged pipe [2006/10/17 14:08:48, 3] nsswitch/winbindd_group.c:winbindd_setgrent(431) [10927]: setgrent [2006/10/17 14:08:48, 3] nsswitch/winbindd_group.c:winbindd_getgrent(619) [10927]: getgrent [2006/10/17 14:08:48, 1] nsswitch/winbindd_group.c:fill_grent_mem(134) could not lookup membership for group rid S-1-5-21-2127695773-367946666-646806464-513 in domain SECGEN (err...
2004 Feb 20
24
[Bug 787] Minor security problem due to use of deprecated NGROUPS_MAX in uidswap.c (sshd)
http://bugzilla.mindrot.org/show_bug.cgi?id=787 ------- Additional Comments From openssh_bugzilla at hockin.org 2004-02-20 13:01 ------- Created an attachment (id=548) --> (http://bugzilla.mindrot.org/attachment.cgi?id=548&action=view) NGROUPS patch ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2000 Jan 04
0
two-level getgrent bug in samba-2.0.6 (PATCH#11)
...============ RCS file: /data/cvs/samba/source/smbd/password.c,v retrieving revision 1.110.2.25 diff -u -r1.110.2.25 password.c --- password.c 1999/12/10 00:50:01 1.110.2.25 +++ password.c 2000/01/04 00:47:35 @@ -618,24 +618,61 @@ #ifdef HAVE_GETGRENT { struct group *gptr; - char **member; setgrent(); while ((gptr = (struct group *)getgrent())) { - if (!strequal(gptr->gr_name,group)) - continue; - member = gptr->gr_mem; - while (member && *member) { + if (strequal(gptr->gr_name,group)) + break; + } + + /* + * As user_ok can recurse doing a getgrent(), we...
2003 Jun 13
0
Problem with large NIS groups - Samba 2.2.8
...ur large overhead. I've tried to write some additional code to do a lookup by gid, but this involves a sequential search and it turns out to be unacceptably expensive: struct sys_userlist *get_users_in_group_by_gid(gid_t gid) { struct sys_userlist *list_head = NULL; struct group *gptr; setgrent(); while((gptr = getgrent()) != NULL) { if (gid == gptr->gr_gid) { list_head = add_members_to_userlist(list_head, gptr); if (list_head == NULL) return NULL; } } endgrent(); return list_head; } It all comes down to the fact that matches are not done against an instant...
2004 Jan 21
0
AD Primary Group Masked by Local Primary Group
...277]: initgroups gid=10000 [ 1277]: initgroups gid=10328 Below is a modified debug output of an "id -a user2a" execution, where only the local primary group, "localgrp", is returned. [ 932]: nss_winbind: Initialized nss_winbind group backend [ 932]: nss_winbind: _nss_winbind_setgrent_solwrap [ 932]: setgrent ... [ 932]: getgrent group.gr_name = Domain Users group.gr_passwd = x group.gr_gid = 10000 group.gr_mem = 0x25afc (user1a) 0x25b00 (user2a) [ 932]: nss_win...
2004 Sep 08
0
Postfix > sasl2 > pam > winbind
...nam_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, setgrent, not found Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, group, getgrent_r, not found Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, group, endgrent, not found Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, passwd, endpwent, n...
2004 Sep 08
0
postfix > sasl > pam > winbind
...nam_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, setgrent, not found Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, group, getgrent_r, not found Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, group, endgrent, not found Apr 20 18:35:00 bert cron[2528]: NSSWITCH(nss_method_lookup): winbind, passwd, endpwent, n...
2000 Feb 23
0
Fwd: RE: Group logon Scripts
...o group 2, you have > different settings for each. What about user C who belongs to both > groups 1 and 2 and needs both groups' settings? > > My take on it: > You could set up an array of all the groups that a user belongs to > like this: > > $username=$ARGV[0]; > setgrent(); > while (@grline=getgrent()) { > (@users)=split(' ',$grline[3]); > if (grep(/^$username$/,@users)) { > push(@groups,$grline[0]); > } > } > # Uncomment to debug > #print "$username belongs to:n"; > #foreach $grou...
2007 Sep 08
19
Group changes made over and over?
Hi, I have several Debian servers with puppet 0.23.2. Part of my manifest looks like this: class virt_all_users { @group { "andy": ensure => "present", gid => "1000" } @user { "andy": ensure => "present", uid => "1000",
2000 Jan 07
3
Group logon Scripts
We're almost at the stage of rolling out our new RH6.1/Samba server - one last item. We have some 60 users and 7 departments. Can I use/how do I use a logon script to log groups onto the server. I currently have 1 logon script per user, but a small change in 1 share means updating every script. Can I log them on by group ID but still map their personal shares with the %U flag so I then
2003 Jan 27
19
Winbind on HPUX11, Totally Stuck, Please Help
Skipped content of type multipart/alternative