Lines Matching defs:entry

642 __s_cvt_freeEntryRdn(ns_ldap_entry_t **entry, char **rdn)
644 if (*entry != NULL) {
645 __ns_ldap_freeEntry(*entry);
646 *entry = NULL;
1258 * __ns_ldap_repAttr modifies ldap attributes of the 'dn' entry stored
1356 const ns_ldap_entry_t *entry,
1371 if ((entry == NULL) || (dn == NULL) || (cred == NULL))
1375 /* Construct array of LDAPMod representing attributes of new entry. */
1377 nAttr = entry->attr_count;
1378 attr = (const ns_ldap_attr_t * const *)(entry->attr_pair);
1526 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
1543 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
1545 *entry = e = __s_mk_entry(oclist, max_attr);
1555 *entry = NULL;
1564 *entry = NULL;
1571 __s_cvt_freeEntryRdn(entry, rdn);
1576 __s_cvt_freeEntryRdn(entry, rdn);
1584 __s_cvt_freeEntryRdn(entry, rdn);
1592 __s_cvt_freeEntryRdn(entry, rdn);
1599 __s_cvt_freeEntryRdn(entry, rdn);
1606 __s_cvt_freeEntryRdn(entry, rdn);
1613 __s_cvt_freeEntryRdn(entry, rdn);
1620 __s_cvt_freeEntryRdn(entry, rdn);
1668 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
1684 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
1687 *entry = e = __s_mk_entry(oclist, max_attr);
1696 *entry = NULL;
1705 *entry = NULL;
1714 __s_cvt_freeEntryRdn(entry, rdn);
1724 __s_cvt_freeEntryRdn(entry, rdn);
1729 __s_cvt_freeEntryRdn(entry, rdn);
1737 __s_cvt_freeEntryRdn(entry, rdn);
1746 __s_cvt_freeEntryRdn(entry, rdn);
1755 __s_cvt_freeEntryRdn(entry, rdn);
1764 __s_cvt_freeEntryRdn(entry, rdn);
1780 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
1797 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
1799 *entry = e = __s_mk_entry(oclist, max_attr);
1808 *entry = NULL;
1817 *entry = NULL;
1824 __s_cvt_freeEntryRdn(entry, rdn);
1829 __s_cvt_freeEntryRdn(entry, rdn);
1834 __s_cvt_freeEntryRdn(entry, rdn);
1842 __s_cvt_freeEntryRdn(entry, rdn);
1850 __s_cvt_freeEntryRdn(entry, rdn);
1858 __s_cvt_freeEntryRdn(entry, rdn);
1866 __s_cvt_freeEntryRdn(entry, rdn);
1874 __s_cvt_freeEntryRdn(entry, rdn);
1882 __s_cvt_freeEntryRdn(entry, rdn);
1889 __s_cvt_freeEntryRdn(entry, rdn);
1904 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
1921 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
1923 *entry = e = __s_mk_entry(oclist, max_attr);
1932 *entry = NULL;
1941 *entry = NULL;
1948 __s_cvt_freeEntryRdn(entry, rdn);
1955 __s_cvt_freeEntryRdn(entry, rdn);
1961 __s_cvt_freeEntryRdn(entry, rdn);
1973 __s_cvt_freeEntryRdn(entry, rdn);
1982 __s_cvt_freeEntryRdn(entry, rdn);
1993 __s_cvt_freeEntryRdn(entry, rdn);
2008 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2025 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2027 *entry = e = __s_mk_entry(oclist, max_attr);
2037 *entry = NULL;
2047 *entry = NULL;
2063 __s_cvt_freeEntryRdn(entry, rdn);
2073 __s_cvt_freeEntryRdn(entry, rdn);
2086 __s_cvt_freeEntryRdn(entry, rdn);
2092 __s_cvt_freeEntryRdn(entry, rdn);
2104 __s_cvt_freeEntryRdn(entry, rdn);
2113 __s_cvt_freeEntryRdn(entry, rdn);
2124 __s_cvt_freeEntryRdn(entry, rdn);
2128 __s_cvt_freeEntryRdn(entry, rdn);
2142 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2159 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2161 *entry = e = __s_mk_entry(oclist, max_attr);
2170 *entry = NULL;
2179 *entry = NULL;
2190 __s_cvt_freeEntryRdn(entry, rdn);
2201 __s_cvt_freeEntryRdn(entry, rdn);
2207 __s_cvt_freeEntryRdn(entry, rdn);
2216 __s_cvt_freeEntryRdn(entry, rdn);
2232 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2249 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2251 *entry = e = __s_mk_entry(oclist, max_attr);
2260 *entry = NULL;
2269 *entry = NULL;
2280 __s_cvt_freeEntryRdn(entry, rdn);
2291 __s_cvt_freeEntryRdn(entry, rdn);
2297 __s_cvt_freeEntryRdn(entry, rdn);
2305 __s_cvt_freeEntryRdn(entry, rdn);
2320 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2338 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2340 *entry = e = __s_mk_entry(oclist, max_attr);
2349 *entry = NULL;
2358 *entry = NULL;
2369 *entry = NULL;
2380 __s_cvt_freeEntryRdn(entry, rdn);
2391 __s_cvt_freeEntryRdn(entry, rdn);
2397 __s_cvt_freeEntryRdn(entry, rdn);
2405 __s_cvt_freeEntryRdn(entry, rdn);
2410 __s_cvt_freeEntryRdn(entry, rdn);
2424 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2441 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2443 *entry = e = __s_mk_entry(oclist, max_attr);
2452 *entry = NULL;
2467 *entry = NULL;
2478 __s_cvt_freeEntryRdn(entry, rdn);
2489 __s_cvt_freeEntryRdn(entry, rdn);
2495 __s_cvt_freeEntryRdn(entry, rdn);
2502 __s_cvt_freeEntryRdn(entry, rdn);
2516 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2530 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2532 *entry = e = __s_mk_entry(oclist, max_attr);
2541 *entry = NULL;
2550 *entry = NULL;
2557 __s_cvt_freeEntryRdn(entry, rdn);
2564 __s_cvt_freeEntryRdn(entry, rdn);
2579 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2595 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2597 *entry = e = __s_mk_entry(oclist, max_attr);
2606 *entry = NULL;
2615 *entry = NULL;
2622 __s_cvt_freeEntryRdn(entry, rdn);
2634 __s_cvt_freeEntryRdn(entry, rdn);
2644 __s_cvt_freeEntryRdn(entry, rdn);
2654 __s_cvt_freeEntryRdn(entry, rdn);
2664 __s_cvt_freeEntryRdn(entry, rdn);
2677 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2694 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2696 *entry = e = __s_mk_entry(oclist, max_attr);
2705 *entry = NULL;
2714 *entry = NULL;
2721 __s_cvt_freeEntryRdn(entry, rdn);
2733 __s_cvt_freeEntryRdn(entry, rdn);
2743 __s_cvt_freeEntryRdn(entry, rdn);
2758 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2773 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2775 *entry = e = __s_mk_entry(oclist, max_attr);
2784 *entry = NULL;
2793 *entry = NULL;
2800 __s_cvt_freeEntryRdn(entry, rdn);
2806 __s_cvt_freeEntryRdn(entry, rdn);
2814 * or a bootparams (objectclass: bootableDevice) entry, and the entry is
2816 * LDAP container, we want to check that the entry found in LDAP is:
2817 * - either the same entry (same cn, same objectclass): we don't do anything
2819 * - or an entry which does not have the objectclass we are interesting in:
2820 * in this case, we modify the existing entry by adding the relevant
2878 * entry already exists for this service
2885 * entry not found with the given objectclasss but entry exists
2931 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
2944 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
2946 *entry = e = __s_mk_entry(oclist, max_attr);
2955 *entry = NULL;
2967 *entry = NULL;
2975 __s_cvt_freeEntryRdn(entry, rdn);
2981 __s_cvt_freeEntryRdn(entry, rdn);
2994 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3010 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3012 *entry = e = __s_mk_entry(oclist, max_attr);
3021 *entry = NULL;
3030 *entry = NULL;
3037 __s_cvt_freeEntryRdn(entry, rdn);
3049 __s_cvt_freeEntryRdn(entry, rdn);
3059 __s_cvt_freeEntryRdn(entry, rdn);
3074 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3091 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3110 *entry = e = __s_mk_entry(oclist, max_attr);
3119 *entry = NULL;
3129 *entry = NULL;
3137 __s_cvt_freeEntryRdn(entry, rdn);
3145 __s_cvt_freeEntryRdn(entry, rdn);
3163 __s_cvt_freeEntryRdn(entry, rdn);
3177 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3191 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3194 *entry = e = __s_mk_entry(oclist, max_attr);
3203 *entry = NULL;
3212 *entry = NULL;
3218 __s_cvt_freeEntryRdn(entry, rdn);
3224 __s_cvt_freeEntryRdn(entry, rdn);
3231 __s_cvt_freeEntryRdn(entry, rdn);
3239 __s_cvt_freeEntryRdn(entry, rdn);
3247 __s_cvt_freeEntryRdn(entry, rdn);
3255 __s_cvt_freeEntryRdn(entry, rdn);
3269 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3285 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3288 *entry = e = __s_mk_entry(oclist, max_attr);
3300 *entry = NULL;
3309 *entry = NULL;
3321 *entry = NULL;
3327 __s_cvt_freeEntryRdn(entry, rdn);
3333 __s_cvt_freeEntryRdn(entry, rdn);
3339 __s_cvt_freeEntryRdn(entry, rdn);
3345 __s_cvt_freeEntryRdn(entry, rdn);
3351 __s_cvt_freeEntryRdn(entry, rdn);
3358 __s_cvt_freeEntryRdn(entry, rdn);
3366 __s_cvt_freeEntryRdn(entry, rdn);
3380 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3394 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3397 *entry = e = __s_mk_entry(oclist, max_attr);
3406 *entry = NULL;
3415 *entry = NULL;
3421 __s_cvt_freeEntryRdn(entry, rdn);
3427 __s_cvt_freeEntryRdn(entry, rdn);
3434 __s_cvt_freeEntryRdn(entry, rdn);
3442 __s_cvt_freeEntryRdn(entry, rdn);
3450 __s_cvt_freeEntryRdn(entry, rdn);
3464 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3477 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3480 *entry = e = __s_mk_entry(oclist, max_attr);
3490 *entry = NULL;
3499 *entry = NULL;
3509 __s_cvt_freeEntryRdn(entry, rdn);
3516 __s_cvt_freeEntryRdn(entry, rdn);
3524 __s_cvt_freeEntryRdn(entry, rdn);
3532 __s_cvt_freeEntryRdn(entry, rdn);
3546 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3559 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3562 *entry = e = __s_mk_entry(oclist, max_attr);
3571 *entry = NULL;
3580 *entry = NULL;
3591 __s_cvt_freeEntryRdn(entry, rdn);
3599 __s_cvt_freeEntryRdn(entry, rdn);
3613 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3628 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3631 *entry = e = __s_mk_entry(oclist, max_attr);
3640 *entry = NULL;
3649 *entry = NULL;
3658 *entry = NULL;
3664 __s_cvt_freeEntryRdn(entry, rdn);
3670 __s_cvt_freeEntryRdn(entry, rdn);
3683 ns_ldap_entry_t **entry, ns_ldap_error_t **errorp)
3698 if (data == NULL || rdn == NULL || entry == NULL || errorp == NULL)
3701 *entry = e = __s_mk_entry(oclist, max_attr);
3711 *entry = NULL;
3720 *entry = NULL;
3726 __s_cvt_freeEntryRdn(entry, rdn);
3732 __s_cvt_freeEntryRdn(entry, rdn);
3748 ns_ldap_entry_t **entry,
3796 ns_ldap_entry_t *entry = NULL;
3825 rc = (*__s_cvtlist[s].cvt_rtn)(data, &rdn, &entry, errorp);
3827 __s_cvt_freeEntryRdn(&entry, &rdn);
3831 __ns_ldap_freeEntry(entry);
3850 __s_cvt_freeEntryRdn(&entry, &rdn);
3861 __s_cvt_freeEntryRdn(&entry, &rdn);
3871 __s_cvt_freeEntryRdn(&entry, &rdn);
3880 __s_cvt_freeEntryRdn(&entry, &rdn);
3887 __s_cvt_freeEntryRdn(&entry, &rdn);
3896 __s_cvt_freeEntryRdn(&entry, &rdn);
3904 __s_cvt_freeEntryRdn(&entry, &rdn);
3910 modattrlist = (const ns_ldap_attr_t * const *)entry->attr_pair;
3911 /* Check to see if the entry exists already */
3915 /* Modify the entry */
3917 * To add a shadow-like entry, the addTypedEntry function
3920 * This is to allow a netmask entry to be added even if the
3921 * base network entry is not in the directory. It would work
3926 * attributes the base entry needs, so if the __ns_ldap_addEntry
3928 * the base entry did not exist. So returning
3941 entry, cred, flags, errorp);
3949 /* Add the entry */
3950 rc = __ns_ldap_addEntry(service, fulldn, entry,
3961 /* Free up entry created by conversion routine */
3964 __s_cvt_freeEntryRdn(&entry, &rdn);
4062 /* copy entry DN */