~ubuntu-branches/ubuntu/trusty/389-ds-base/trusty

« back to all changes in this revision

Viewing changes to ldap/servers/plugins/pam_passthru/pam_ptpreop.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2013-08-30 00:31:55 UTC
  • mfrom: (1.2.1)
  • Revision ID: package-import@ubuntu.com-20130830003155-oimuzdqopkvp2cd0
Tags: 1.3.1.7-0ubuntu1
Sync from unreleased debian git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
    slapi_log_error( SLAPI_LOG_TRACE, PAM_PASSTHRU_PLUGIN_SUBSYSTEM,
230
230
                     "<= pam_passthruauth_init\n" );
231
231
 
232
 
  bail:
 
232
bail:
233
233
    return status;
234
234
}
235
235
 
574
574
    Slapi_Entry *e = NULL;
575
575
    LDAPMod **mods;
576
576
    char returntext[SLAPI_DSE_RETURNTEXT_SIZE];
577
 
    int ret = 0;
 
577
    int ret = SLAPI_PLUGIN_SUCCESS;
578
578
 
579
579
    slapi_log_error(SLAPI_LOG_TRACE, PAM_PASSTHRU_PLUGIN_SUBSYSTEM,
580
580
                    "=> pam_passthru_preop\n");
640
640
 
641
641
    }
642
642
 
643
 
  bail:
 
643
bail:
644
644
    /* If we are refusing the operation, return the result to the client. */
645
645
    if (ret) {
646
646
        slapi_send_ldap_result(pb, ret, NULL, returntext, 0, NULL);
647
 
        ret = -1;
 
647
        ret = SLAPI_PLUGIN_FAILURE;
648
648
    }
649
649
 
650
650
    slapi_log_error(SLAPI_LOG_TRACE, PAM_PASSTHRU_PLUGIN_SUBSYSTEM,
683
683
static int
684
684
pam_passthru_postop(Slapi_PBlock *pb)
685
685
{
686
 
    int ret = 0;
 
686
    int ret = SLAPI_PLUGIN_SUCCESS;
687
687
    Slapi_DN *sdn = NULL;
688
688
    Slapi_DN *new_sdn = NULL;
689
689
    Slapi_Entry *e = NULL;
737
737
    slapi_log_error(SLAPI_LOG_TRACE, PAM_PASSTHRU_PLUGIN_SUBSYSTEM,
738
738
                    "<= pam_passthru_postop\n");
739
739
 
740
 
  bail:
 
740
bail:
741
741
    return ret;
742
742
}
743
743