Displaying 7 results from an estimated 7 matches for "gr_name".
Did you mean:
g_name
2000 Jan 04
0
two-level getgrent bug in samba-2.0.6 (PATCH#11)
...0.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 must
+ * copy the member list into a pstring on the stack before
+ * use. Bug point...
2006 Jul 14
1
Samba 3.0.23 winbind use default domain = yes behaviour
Hello list,
I encountered a problem in Samba 3.0.23 regarding the winbind use default
domain = yes behaviour.
It only works for the users an NOT anymore for the Group. So this make
getent group to show NETBIOSDOMAINNAME/group which course mail squid
configuration to fail. My squid configuration allowed access based on the AD
groups, which are provided by Winbindd.
Tested distribution:
SuSE
2004 Jan 21
0
AD Primary Group Masked by Local Primary Group
...ug 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_winbind: _nss_winbind_getgrent_solwrap: Returning group: Domain Users
...
[ 932]:...
2004 Feb 20
1
NGROUPS_MAX on Linux
...malloc(ngroups * sizeof(*groups_byname));
+
if (getgrouplist(user, base, groups_bygid, &ngroups) == -1)
logit("getgrouplist: groups list too small");
- for (i = 0, j = 0; i < ngroups; i++)
- if ((gr = getgrgid(groups_bygid[i])) != NULL)
- groups_byname[j++] = xstrdup(gr->gr_name);
- return (ngroups = j);
+ for (i = 0; i < ngroups; i++) {
+ if ((gr = getgrgid(groups_bygid[i])) != NULL) {
+ groups_byname[i] = xstrdup(gr->gr_name);
+ } else {
+ char gidstr[32];
+
+ logit("getgrgid: unknown group id: %d",
+ (int)groups_bygid[i]);
+ snprintf(gids...
2006 Feb 10
0
OpenSSH ControlAllowUsers, et al Patch
...ers[i]))) {
+ error("%s control mode uid denied: %s", __func__, options.control_deny_users[i]);
+ return 0;
+ }
+ }
+
+ for (i = 0; i < options.num_control_deny_groups; i++) {
+ if (match_pattern(egidstr,options.control_deny_groups[i])
+ || (egr && match_pattern(egr->gr_name,options.control_deny_groups[i]))) {
+ error("%s control mode gid denied: %s", __func__, options.control_deny_groups[i]);
+ return 0;
+ }
+ }
+
+ for (i = 0; i < options.num_control_allow_users; i++) {
+ if (match_pattern(euidstr,options.control_allow_users[i])
+ || (epw &&a...
2005 Jul 04
0
[Bug 2847] New: Group not preserved with rsync 2.6.3 on Cygwin in daemon mode
...t simulates the call made by rsync to map file groups
(gid_to_name, is it correct?) in uidlist.c.:
#include <pwd.h>
#include <grp.h>
#include <stdio.h>
void gid_to_name(gid_t gid)
{
struct group *grp = getgrgid(gid);
if (grp)
printf(strdup(grp->gr_name));
}
int main(int argc,char *argv[]) {
gid_to_name(11003);
}
This test works, it prints the group as mapped in Windows.
I can't understand where the problem is. Maybe the gid_to_name is sensible to
the context in which is called?
Thanks in advance
Regards
--
Configure bugmail: htt...
2006 Oct 09
1
About sftp-server root path
Hi,
I saw in archive that some people made a patch to sftp-server, and that patch
sets a root path.
I'd like to know if there's an ideia to apply that patch in main tree of
openssh?
With the use of SSHFS [wich uses sftp-server], it would be interesting to
have someting like that, because as we have netboot workstations, the access
to devices [such as, floppy, cdrom and usb data] are