Lines Matching refs:entry

142  *       indicates a user or group entry
197 * user entry. It then does a group search with a filter
203 * the memberOf attribute in a group entry is used as an indication that
262 * gr_attrs lists the attributes needed for generating a group(4) entry.
296 * gr_attrs4 is used for schema mapping a group entry returned
716 /* Perform schema mapping on a group entry returned from a dn2uid lookup. */
718 schema_map_dn2uid_group(ns_ldap_entry_t *entry, ns_ldap_attr_t *goc,
730 /* Make sure it's a group entry. */
738 /* not a posixGroup entry, return NSS_NOTFOUND */
750 * names that may be seen in the result group entry.
765 for (j = 0; j < entry->attr_count; j++) {
766 attrname = entry->attr_pair[j]->attrname;
770 entry->attr_pair[j]->attrname = NULL;
776 entry->attr_pair[j]->attrname =
857 * Get the DN entry from the server. Specify 'passwd' as the service
858 * first, in case this DN is that of a posixAccount (user) entry, so
861 * points to a posixGroup (group) entry, in which case, libsldap won't
864 * the user or group entry in just one call to __ns_ldap_read_dn().
894 oc = __ns_ldap_getAttrStruct(result->entry, _G_OBJECTCLASS);
905 * Not a posixAccount entry, should be a posixGroup one.
909 rc = schema_map_dn2uid_group(result->entry, oc,
935 username = __ns_ldap_getAttrStruct(result->entry, _G_UID);
949 members = __ns_ldap_getAttrStruct(result->entry, _G_MEMBERUID);
964 members = __ns_ldap_getAttrStruct(result->entry, gr_attrs3[mi]);
1150 * to find a group or passwd entry with a matching DN.
1353 } else { /* a group entry */
1426 TLE_group_member_cb(const ns_ldap_entry_t *entry, const void *userdata)
1435 oc = __ns_ldap_getAttrStruct(entry, _G_OBJECTCLASS);
1442 /* Not an posixAccount entry, skip. */
1447 username = __ns_ldap_getAttr(entry, _G_UID);
1449 /* No user name, just ignore the entry. */
1464 * of a group entry. All member entries including those of the child
1469 get_TLE_group_member(ns_ldap_entry_t *entry, _member_tl_cb_t *member_tc)
1479 dn = __ns_ldap_getAttr(entry, "dn");
1533 members = __ns_ldap_getAttrStruct(result->entry, _G_MEMBERUID);
1544 /* Determine which type of server the entry is from. */
1554 res = get_TLE_group_member(result->entry, &member_tc);
1561 members = __ns_ldap_getAttrStruct(result->entry, gr_attrs3[mi]);
1644 gname = __ns_ldap_getAttr(result->entry, _G_NAME);
1649 passwd = __ns_ldap_getAttr(result->entry, _G_PASSWD);
1666 gid = __ns_ldap_getAttr(result->entry, _G_GIDNUMBER);
1706 * Save the entry DN as an optional data, if
1721 dn_v = __ns_ldap_getAttr(result->entry, "dn");
1747 * getbynam gets a group entry by name. This function constructs an ldap
1750 * entry and marshal the data results into struct group for the frontend
1783 * getbygid gets a group entry by number. This function constructs an ldap
1786 * entry and marshal the data results into struct group for the frontend
1903 pack_group_gid_dn(void **bufpp, const ns_ldap_entry_t *entry,
1919 dn = __ns_ldap_getAttr(entry, "dn");
1946 gidvalue = __ns_ldap_getAttr(entry, "gidnumber");
1976 TLE_memberof_cb(const ns_ldap_entry_t *entry, const void *userdata)
1981 rc = pack_group_gid_dn(bc->bufpp, entry,
2067 * Store gidnumber and entry DN from each result entry in the
2070 for (curEntry = result->entry, i = 0; i < result->entries_count;
2197 dn = __ns_ldap_getAttr(result1->entry, "dn");
2204 /* Determine which type of server the entry is from. */
2240 * Use a callback function to process each result entry.
2324 * Store gidnumber and entry DN from each result entry in the
2327 for (curEntry = result->entry, i = 0; i < result->entries_count;
2499 /* Skip DN of the group entry, it will be processed later. */