]> git.sur5r.net Git - openldap/commitdiff
Fix typos, use uid2dn by default
authorHoward Chu <hyc@openldap.org>
Wed, 29 Apr 2009 02:27:39 +0000 (02:27 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 29 Apr 2009 02:27:39 +0000 (02:27 +0000)
contrib/slapd-modules/nssov/nssov.c

index 60d41291c39bc64106688cd2f3a1f44f533e87ce..65f736e7a970ef68f67db1402afbc9b097bc5189 100644 (file)
@@ -416,7 +416,7 @@ static slap_verbmasks pam_opts[] = {
        { BER_BVC("userservice"), NI_PAM_USERSVC },
        { BER_BVC("usergroup"), NI_PAM_USERGRP },
        { BER_BVC("hostservice"), NI_PAM_HOSTSVC },
-       { BER_BVC("sasl2dn"), NI_PAM_SASL2DN },
+       { BER_BVC("authz2dn"), NI_PAM_SASL2DN },
        { BER_BVC("uid2dn"), NI_PAM_UID2DN },
        { BER_BVNULL, 0 }
 };
@@ -458,7 +458,7 @@ static ConfigTable nsscfg[] = {
                        "DESC 'DN of group in which membership is required' "
                        "EQUALITY distinguishedNameMatch "
                        "SYNTAX OMsDN SINGLE-VALUE )", NULL, NULL },
-       { "nssov-pam-group-ad", "options", 2, 2, 0, ARG_OFFSET|ARG_ATDESC,
+       { "nssov-pam-group-ad", "attr", 2, 2, 0, ARG_OFFSET|ARG_ATDESC,
                (void *)offsetof(struct nssov_info, ni_pam_group_ad),
                "(OLcfgCtAt:3.6 NAME 'olcNssPamGroupAD' "
                        "DESC 'Member attribute to use for group check' "
@@ -709,7 +709,7 @@ nssov_db_init(
        rc = nssov_pam_init();
        if (rc) return rc;
 
-       ni = ch_malloc( sizeof(nssov_info) );
+       ni = ch_calloc( 1, sizeof(nssov_info) );
        on->on_bi.bi_private = ni;
 
        /* set up map keys */
@@ -726,6 +726,7 @@ nssov_db_init(
        nssov_shadow_init(ni);
 
        ni->ni_db = be->bd_self;
+       ni->ni_pam_opts = NI_PAM_UID2DN;
 
        return 0;
 }