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

« back to all changes in this revision

Viewing changes to ldap/servers/slapd/pw_retry.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2013-02-06 18:06:31 UTC
  • mfrom: (11.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130206180631-h6ldv3k506hmm46e
Tags: 1.3.0.2-0ubuntu2
debian/*: Fix time stamps due to clock skew (FTBFS).

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        slapi_pblock_get( pb, SLAPI_TARGET_SDN, &sdn );
137
137
        dn = slapi_sdn_get_dn(sdn);
138
138
        pwpolicy = new_passwdPolicy(pb, dn);
139
 
 
140
139
        slapi_mods_init(&smods, 0);
141
140
 
142
141
        reset_time = time_plus_sec ( cur_time, 
150
149
        
151
150
        pw_apply_mods(sdn, &smods);
152
151
        slapi_mods_done(&smods);
153
 
        delete_passwdPolicy(&pwpolicy);
154
152
 
155
153
        return rc;
156
154
}
190
188
                        rc = LDAP_CONSTRAINT_VIOLATION;
191
189
                }
192
190
        }
193
 
        delete_passwdPolicy(&pwpolicy);
194
191
        return rc;
195
192
}
196
193
 
221
218
        int             search_result = 0;
222
219
        Slapi_Entry     *retentry = NULL;
223
220
        Slapi_DN        *target_sdn = NULL;
224
 
        char            *target_dn = (char *)dn;
 
221
        const char      *target_dn = dn;
225
222
        Slapi_DN        sdn;
226
223
 
227
224
        if (pb) {