Lines Matching refs:entry

696 __s_cvt_freeEntryRdn(ns_ldap_entry_t **entry, char **rdn)
698 if (*entry != NULL) {
699 __ns_ldap_freeEntry(*entry);
700 *entry = NULL;
1411 * __ns_ldap_repAttr modifies ldap attributes of the 'dn' entry stored
1483 const ns_ldap_entry_t *entry,
1498 if ((entry == NULL) || (dn == NULL))
1502 attr = (const ns_ldap_attr_t * const *)(entry->attr_pair);
1527 /* Construct array of LDAPMod representing attributes of new entry. */
1532 nAttr = entry->attr_count;
1721 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
1738 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
1740 *entry = e = __s_mk_entry(oclist, max_attr);
1750 *entry = NULL;
1759 *entry = NULL;
1766 __s_cvt_freeEntryRdn(entry, rdn);
1771 __s_cvt_freeEntryRdn(entry, rdn);
1779 __s_cvt_freeEntryRdn(entry, rdn);
1787 __s_cvt_freeEntryRdn(entry, rdn);
1794 __s_cvt_freeEntryRdn(entry, rdn);
1801 __s_cvt_freeEntryRdn(entry, rdn);
1808 __s_cvt_freeEntryRdn(entry, rdn);
1815 __s_cvt_freeEntryRdn(entry, rdn);
1863 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
1879 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
1882 *entry = e = __s_mk_entry(oclist, max_attr);
1891 *entry = NULL;
1900 *entry = NULL;
1909 __s_cvt_freeEntryRdn(entry, rdn);
1919 __s_cvt_freeEntryRdn(entry, rdn);
1924 __s_cvt_freeEntryRdn(entry, rdn);
1932 __s_cvt_freeEntryRdn(entry, rdn);
1941 __s_cvt_freeEntryRdn(entry, rdn);
1950 __s_cvt_freeEntryRdn(entry, rdn);
1959 __s_cvt_freeEntryRdn(entry, rdn);
1975 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
1992 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
1994 *entry = e = __s_mk_entry(oclist, max_attr);
2003 *entry = NULL;
2012 *entry = NULL;
2019 __s_cvt_freeEntryRdn(entry, rdn);
2024 __s_cvt_freeEntryRdn(entry, rdn);
2029 __s_cvt_freeEntryRdn(entry, rdn);
2037 __s_cvt_freeEntryRdn(entry, rdn);
2045 __s_cvt_freeEntryRdn(entry, rdn);
2053 __s_cvt_freeEntryRdn(entry, rdn);
2061 __s_cvt_freeEntryRdn(entry, rdn);
2073 __s_cvt_freeEntryRdn(entry, rdn);
2086 __s_cvt_freeEntryRdn(entry, rdn);
2094 __s_cvt_freeEntryRdn(entry, rdn);
2109 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2126 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2128 *entry = e = __s_mk_entry(oclist, max_attr);
2137 *entry = NULL;
2146 *entry = NULL;
2153 __s_cvt_freeEntryRdn(entry, rdn);
2160 __s_cvt_freeEntryRdn(entry, rdn);
2166 __s_cvt_freeEntryRdn(entry, rdn);
2178 __s_cvt_freeEntryRdn(entry, rdn);
2187 __s_cvt_freeEntryRdn(entry, rdn);
2198 __s_cvt_freeEntryRdn(entry, rdn);
2213 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2230 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2232 *entry = e = __s_mk_entry(oclist, max_attr);
2242 *entry = NULL;
2252 *entry = NULL;
2268 __s_cvt_freeEntryRdn(entry, rdn);
2278 __s_cvt_freeEntryRdn(entry, rdn);
2291 __s_cvt_freeEntryRdn(entry, rdn);
2297 __s_cvt_freeEntryRdn(entry, rdn);
2309 __s_cvt_freeEntryRdn(entry, rdn);
2318 __s_cvt_freeEntryRdn(entry, rdn);
2329 __s_cvt_freeEntryRdn(entry, rdn);
2333 __s_cvt_freeEntryRdn(entry, rdn);
2347 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2364 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2366 *entry = e = __s_mk_entry(oclist, max_attr);
2375 *entry = NULL;
2384 *entry = NULL;
2395 __s_cvt_freeEntryRdn(entry, rdn);
2406 __s_cvt_freeEntryRdn(entry, rdn);
2412 __s_cvt_freeEntryRdn(entry, rdn);
2421 __s_cvt_freeEntryRdn(entry, rdn);
2437 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2454 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2456 *entry = e = __s_mk_entry(oclist, max_attr);
2465 *entry = NULL;
2474 *entry = NULL;
2485 __s_cvt_freeEntryRdn(entry, rdn);
2496 __s_cvt_freeEntryRdn(entry, rdn);
2502 __s_cvt_freeEntryRdn(entry, rdn);
2510 __s_cvt_freeEntryRdn(entry, rdn);
2525 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2543 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2545 *entry = e = __s_mk_entry(oclist, max_attr);
2554 *entry = NULL;
2563 *entry = NULL;
2574 *entry = NULL;
2585 __s_cvt_freeEntryRdn(entry, rdn);
2596 __s_cvt_freeEntryRdn(entry, rdn);
2602 __s_cvt_freeEntryRdn(entry, rdn);
2610 __s_cvt_freeEntryRdn(entry, rdn);
2615 __s_cvt_freeEntryRdn(entry, rdn);
2629 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2646 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2648 *entry = e = __s_mk_entry(oclist, max_attr);
2657 *entry = NULL;
2672 *entry = NULL;
2683 __s_cvt_freeEntryRdn(entry, rdn);
2694 __s_cvt_freeEntryRdn(entry, rdn);
2700 __s_cvt_freeEntryRdn(entry, rdn);
2707 __s_cvt_freeEntryRdn(entry, rdn);
2721 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2735 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2737 *entry = e = __s_mk_entry(oclist, max_attr);
2746 *entry = NULL;
2755 *entry = NULL;
2762 __s_cvt_freeEntryRdn(entry, rdn);
2769 __s_cvt_freeEntryRdn(entry, rdn);
2784 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2800 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2802 *entry = e = __s_mk_entry(oclist, max_attr);
2811 *entry = NULL;
2820 *entry = NULL;
2827 __s_cvt_freeEntryRdn(entry, rdn);
2839 __s_cvt_freeEntryRdn(entry, rdn);
2849 __s_cvt_freeEntryRdn(entry, rdn);
2859 __s_cvt_freeEntryRdn(entry, rdn);
2869 __s_cvt_freeEntryRdn(entry, rdn);
2882 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2899 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2901 *entry = e = __s_mk_entry(oclist, max_attr);
2910 *entry = NULL;
2919 *entry = NULL;
2926 __s_cvt_freeEntryRdn(entry, rdn);
2938 __s_cvt_freeEntryRdn(entry, rdn);
2948 __s_cvt_freeEntryRdn(entry, rdn);
2963 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2978 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2980 *entry = e = __s_mk_entry(oclist, max_attr);
2989 *entry = NULL;
2998 *entry = NULL;
3005 __s_cvt_freeEntryRdn(entry, rdn);
3011 __s_cvt_freeEntryRdn(entry, rdn);
3019 * or a bootparams (objectclass: bootableDevice) entry, and the entry is
3021 * LDAP container, we want to check that the entry found in LDAP is:
3022 * - either the same entry (same cn, same objectclass): we don't do anything
3024 * - or an entry which does not have the objectclass we are interesting in:
3025 * in this case, we modify the existing entry by adding the relevant
3083 * entry already exists for this service
3090 * entry not found with the given objectclasss but entry exists
3136 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3149 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3151 *entry = e = __s_mk_entry(oclist, max_attr);
3160 *entry = NULL;
3172 *entry = NULL;
3180 __s_cvt_freeEntryRdn(entry, rdn);
3186 __s_cvt_freeEntryRdn(entry, rdn);
3199 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3215 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3217 *entry = e = __s_mk_entry(oclist, max_attr);
3226 *entry = NULL;
3235 *entry = NULL;
3242 __s_cvt_freeEntryRdn(entry, rdn);
3254 __s_cvt_freeEntryRdn(entry, rdn);
3264 __s_cvt_freeEntryRdn(entry, rdn);
3279 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3296 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3315 *entry = e = __s_mk_entry(oclist, max_attr);
3324 *entry = NULL;
3334 *entry = NULL;
3342 __s_cvt_freeEntryRdn(entry, rdn);
3350 __s_cvt_freeEntryRdn(entry, rdn);
3368 __s_cvt_freeEntryRdn(entry, rdn);
3382 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3396 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3399 *entry = e = __s_mk_entry(oclist, max_attr);
3408 *entry = NULL;
3417 *entry = NULL;
3423 __s_cvt_freeEntryRdn(entry, rdn);
3429 __s_cvt_freeEntryRdn(entry, rdn);
3436 __s_cvt_freeEntryRdn(entry, rdn);
3444 __s_cvt_freeEntryRdn(entry, rdn);
3452 __s_cvt_freeEntryRdn(entry, rdn);
3460 __s_cvt_freeEntryRdn(entry, rdn);
3474 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3490 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3493 *entry = e = __s_mk_entry(oclist, max_attr);
3505 *entry = NULL;
3514 *entry = NULL;
3526 *entry = NULL;
3532 __s_cvt_freeEntryRdn(entry, rdn);
3538 __s_cvt_freeEntryRdn(entry, rdn);
3544 __s_cvt_freeEntryRdn(entry, rdn);
3550 __s_cvt_freeEntryRdn(entry, rdn);
3556 __s_cvt_freeEntryRdn(entry, rdn);
3563 __s_cvt_freeEntryRdn(entry, rdn);
3571 __s_cvt_freeEntryRdn(entry, rdn);
3585 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3599 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3602 *entry = e = __s_mk_entry(oclist, max_attr);
3611 *entry = NULL;
3620 *entry = NULL;
3626 __s_cvt_freeEntryRdn(entry, rdn);
3632 __s_cvt_freeEntryRdn(entry, rdn);
3639 __s_cvt_freeEntryRdn(entry, rdn);
3647 __s_cvt_freeEntryRdn(entry, rdn);
3655 __s_cvt_freeEntryRdn(entry, rdn);
3669 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3682 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3685 *entry = e = __s_mk_entry(oclist, max_attr);
3695 *entry = NULL;
3704 *entry = NULL;
3714 __s_cvt_freeEntryRdn(entry, rdn);
3721 __s_cvt_freeEntryRdn(entry, rdn);
3729 __s_cvt_freeEntryRdn(entry, rdn);
3737 __s_cvt_freeEntryRdn(entry, rdn);
3751 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3764 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3767 *entry = e = __s_mk_entry(oclist, max_attr);
3776 *entry = NULL;
3785 *entry = NULL;
3796 __s_cvt_freeEntryRdn(entry, rdn);
3804 __s_cvt_freeEntryRdn(entry, rdn);
3818 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3833 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3836 *entry = e = __s_mk_entry(oclist, max_attr);
3845 *entry = NULL;
3854 *entry = NULL;
3863 *entry = NULL;
3869 __s_cvt_freeEntryRdn(entry, rdn);
3875 __s_cvt_freeEntryRdn(entry, rdn);
3888 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3903 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3906 *entry = e = __s_mk_entry(oclist, max_attr);
3916 *entry = NULL;
3925 *entry = NULL;
3931 __s_cvt_freeEntryRdn(entry, rdn);
3937 __s_cvt_freeEntryRdn(entry, rdn);
3953 ns_ldap_entry_t **entry,
4001 ns_ldap_entry_t *entry = NULL;
4030 rc = (*__s_cvtlist[s].cvt_rtn)(data, &rdn, &entry, errorp);
4032 __s_cvt_freeEntryRdn(&entry, &rdn);
4036 __ns_ldap_freeEntry(entry);
4055 __s_cvt_freeEntryRdn(&entry, &rdn);
4066 __s_cvt_freeEntryRdn(&entry, &rdn);
4076 __s_cvt_freeEntryRdn(&entry, &rdn);
4085 __s_cvt_freeEntryRdn(&entry, &rdn);
4092 __s_cvt_freeEntryRdn(&entry, &rdn);
4101 __s_cvt_freeEntryRdn(&entry, &rdn);
4109 __s_cvt_freeEntryRdn(&entry, &rdn);
4115 modattrlist = (const ns_ldap_attr_t * const *)entry->attr_pair;
4116 /* Check to see if the entry exists already */
4120 /* Modify the entry */
4122 * To add a shadow-like entry, the addTypedEntry function
4125 * This is to allow a netmask entry to be added even if the
4126 * base network entry is not in the directory. It would work
4131 * attributes the base entry needs, so if the __ns_ldap_addEntry
4133 * the base entry did not exist. So returning
4151 entry, cred, flags, errorp);
4159 /* Add the entry */
4160 rc = __ns_ldap_addEntry(service, fulldn, entry,
4171 /* Free up entry created by conversion routine */
4174 __s_cvt_freeEntryRdn(&entry, &rdn);
4284 /* copy entry DN */
4308 * an existing entry.