Re: Trouble getting groups through ypldap

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nigel Taylor
Date: Thursday, October 14, 2010 - 2:38 pm

It could be the groups your missing have no members, which fails to output the
group. You can confirm this my adding a user to one of the groups, and see if
the group is displayed. This following change, rather than skipping output of
the group, outputs group with a null list of members.

Regards

Nigel Taylor

$ cvs -R -q -d /cvs diff -u
Index: ldapclient.c
===================================================================
RCS file: /cvs/src/usr.sbin/ypldap/ldapclient.c,v
retrieving revision 1.14
diff -u -r1.14 ldapclient.c
--- ldapclient.c        6 Jun 2009 05:02:58 -0000       1.14
+++ ldapclient.c        5 Jul 2009 18:18:35 -0000
@@ -611,7 +611,7 @@
                                }
                        } else if (idm->idm_list & F_LIST(i)) {
                                if (aldap_match_entry(m, attrs[j++],
&ldap_attrs) == -1)
-                                       goto next_grpentry;
+                                       continue;
                                if (ldap_attrs[0] == NULL)
                                        goto next_grpentry;
                                for (k = 0; k >= 0 && ldap_attrs[k] != NULL; k++) {





On 10/14/10 20:15, John Danks wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Trouble getting groups through ypldap, John Danks, (Thu Oct 14, 12:15 pm)
Re: Trouble getting groups through ypldap, Nigel Taylor, (Thu Oct 14, 2:38 pm)
Re: Trouble getting groups through ypldap, John Danks, (Thu Oct 14, 5:28 pm)