Lines Matching refs:entry

374 addentry(void *entry, int mod)
381 /* adds entry into the LDAP tree */
384 entry, 0, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
388 entry, 1, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
392 * LDAP_ALREADY_EXISTS if entry exists already
414 (void) fprintf(stderr, gettext("entry not found.\n"));
692 /* build entry */
711 * don't clobber comment in canonical entry
736 * If there is some comment, it will be stored as the last entry
753 gettext("Adding entry : cn=%s+ipHostNumber=%s\n"),
797 if (res == NULL || res->entry == NULL)
799 for (i = 0; i < res->entry->attr_count; i++) {
800 attrptr = res->entry->attr_pair[i];
815 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
920 * build entry
945 * don't clobber comment in canonical entry
966 * only put comment in canonical entry
983 gettext("Adding entry : %s\n"), data.r_name);
1016 if (res == NULL || res->entry == NULL)
1018 for (i = 0; i < res->entry->attr_count; i++) {
1019 attrptr = res->entry->attr_pair[i];
1031 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1131 * build entry
1157 * don't clobber comment in canonical entry
1177 * only put comment in canonical entry
1194 gettext("Adding entry : %s\n"), data.p_name);
1226 if (res == NULL || res->entry == NULL)
1228 for (i = 0; i < res->entry->attr_count; i++) {
1229 attrptr = res->entry->attr_pair[i];
1242 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1353 * build entry
1379 * don't clobber comment in canonical entry
1399 * only put comment in canonical entry
1416 gettext("Adding entry : %s\n"), data.n_name);
1448 if (res == NULL || res->entry == NULL)
1450 for (i = 0; i < res->entry->attr_count; i++) {
1451 attrptr = res->entry->attr_pair[i];
1471 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1584 * build entry
1611 * don't clobber comment in canonical entry
1631 * only put comment in canonical entry
1648 gettext("Adding entry : %s\n"), line);
1694 if (res == NULL || res->entry == NULL)
1696 for (i = 0; i < res->entry->attr_count; i++) {
1697 attrptr = res->entry->attr_pair[i];
1713 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1830 * build entry
1882 gettext("Adding entry : %s\n"), data.gr_name);
1914 value = __ns_ldap_getAttr(res->entry, "cn");
1917 value = __ns_ldap_getAttr(res->entry, "userPassword");
1927 value = __ns_ldap_getAttr(res->entry, "gidNumber");
1931 value = __ns_ldap_getAttr(res->entry, "memberUid");
2018 * build entry
2027 gettext("Adding entry : %s\n"), data.name);
2057 value = __ns_ldap_getAttr(res->entry, "macAddress");
2062 value = __ns_ldap_getAttr(res->entry, "cn");
2108 /* build entry */
2136 gettext("Adding entry : %s\n"), data.alias);
2171 value = __ns_ldap_getAttr(res->entry, "mail");
2174 value = __ns_ldap_getAttr(res->entry, "mgrpRFC822MailMember");
2229 * Special case: /etc/publickey usually has an entry
2370 * build entry
2402 gettext("Cannot add publickey entry"" (%s),"
2403 " add host entry first\n"),
2407 gettext("Cannot add publickey entry (%s), "
2408 "add passwd entry first\n"),
2444 value = __ns_ldap_getAttr(res->entry, "uidNumber");
2446 value = __ns_ldap_getAttr(res->entry, "cn");
2454 value = __ns_ldap_getAttr(res->entry, "nisPublickey");
2460 value = __ns_ldap_getAttr(res->entry, "nisSecretkey");
2536 /* build entry */
2542 gettext("Adding entry : %s\n"), data.netnumber);
2548 gettext("Cannot add netmask entry (%s), "
2549 "add network entry first\n"), data.netnumber);
2562 value = __ns_ldap_getAttr(res->entry, "ipNetworkNumber");
2565 value = __ns_ldap_getAttr(res->entry, "ipNetmaskNumber");
2604 * process 1st minimal entry, to validate that there is no
2655 * now build entry.
2656 * start by clearing entry data
2682 * we now have a valid entry (at least 1 netgroup name and
2755 gettext("Adding entry : %s\n"), data.name);
2795 value = __ns_ldap_getAttr(res->entry, "cn");
2800 value = __ns_ldap_getAttr(res->entry, "nisNetgroupTriple");
2807 value = __ns_ldap_getAttr(res->entry, "memberNisNetgroup");
2877 gettext("Adding entry : %s\n"), data.key);
2909 value = __ns_ldap_getAttr(res->entry, "automountKey");
2912 value = __ns_ldap_getAttr(res->entry, "automountInformation");
3046 * build entry
3051 /* Add {crypt} before passwd entry */
3092 gettext("Adding entry : %s\n"), data.pw_name);
3123 value = __ns_ldap_getAttr(res->entry, "uid");
3128 value = __ns_ldap_getAttr(res->entry, "userPassword");
3136 value = __ns_ldap_getAttr(res->entry, "uidNumber");
3139 value = __ns_ldap_getAttr(res->entry, "gidNumber");
3142 value = __ns_ldap_getAttr(res->entry, "gecos");
3147 value = __ns_ldap_getAttr(res->entry, "homeDirectory");
3152 value = __ns_ldap_getAttr(res->entry, "loginShell");
3304 * build entry
3311 /* Add {crypt} before passwd entry */
3425 gettext("Adding entry : %s\n"), data.sp_namp);
3431 gettext("Cannot add shadow entry (%s), "
3432 "add passwd entry first\n"), data.sp_namp);
3448 value = __ns_ldap_getAttr(res->entry, "uid");
3453 value = __ns_ldap_getAttr(res->entry, "userPassword");
3466 value = __ns_ldap_getAttr(res->entry, "shadowLastChange");
3471 value = __ns_ldap_getAttr(res->entry, "shadowMin");
3476 value = __ns_ldap_getAttr(res->entry, "shadowMax");
3482 value = __ns_ldap_getAttr(res->entry, "shadowWarning");
3488 value = __ns_ldap_getAttr(res->entry, "shadowInactive");
3494 value = __ns_ldap_getAttr(res->entry, "shadowExpire");
3500 value = __ns_ldap_getAttr(res->entry, "shadowFlag");
3548 /* build entry */
3560 * don't clobber comment in canonical entry
3589 gettext("Adding entry : %s\n"), data.name);
3782 gettext("Adding entry : %s\n"), data.pj_name);
3824 if (res == NULL || res->entry == NULL)
3828 value = __ns_ldap_getAttr(res->entry, "SolarisProjectID");
3838 value = __ns_ldap_getAttr(res->entry, "SolarisProjectName");
3846 value = __ns_ldap_getAttr(res->entry, "description");
3852 value = __ns_ldap_getAttr(res->entry, "memberUid");
3864 value = __ns_ldap_getAttr(res->entry, "memberGid");
3876 value = __ns_ldap_getAttr(res->entry, "SolarisProjectAttr");
3890 value = __ns_ldap_getAttr(res->entry, "cn");
3893 value = __ns_ldap_getAttr(res->entry, "bootParameter");
4203 (void) fprintf(stderr, gettext("entry not found.\n"));