Lines Matching refs:mods

2357 	Modifications		*mods = NULL, *modtail = NULL,
2866 mods = NULL;
2868 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2869 mods->sml_op = LDAP_MOD_REPLACE;
2870 mods->sml_numvals = 1;
2871 mods->sml_values = (BerVarray) ch_calloc( sizeof( struct berval ), 2 );
2872 mods->sml_nvalues = (BerVarray) ch_calloc( sizeof( struct berval ), 2 );
2874 ber_dupbv( &mods->sml_values[0], &timestamp );
2875 ber_dupbv( &mods->sml_nvalues[0], &timestamp );
2877 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2878 mods->sml_op = LDAP_MOD_DELETE;
2880 if (mods) {
2881 mods->sml_desc = ad_pwdChangedTime;
2882 mods->sml_flags = SLAP_MOD_INTERNAL;
2883 mods->sml_next = NULL;
2884 modtail->sml_next = mods;
2885 modtail = mods;
2890 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2891 mods->sml_op = LDAP_MOD_DELETE;
2892 mods->sml_desc = ad_pwdGraceUseTime;
2893 mods->sml_flags = SLAP_MOD_INTERNAL;
2894 mods->sml_next = NULL;
2895 modtail->sml_next = mods;
2896 modtail = mods;
2900 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2901 mods->sml_op = LDAP_MOD_DELETE;
2902 mods->sml_desc = ad_pwdAccountLockedTime;
2903 mods->sml_flags = SLAP_MOD_INTERNAL;
2904 mods->sml_next = NULL;
2905 modtail->sml_next = mods;
2906 modtail = mods;
2910 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2911 mods->sml_op = LDAP_MOD_DELETE;
2912 mods->sml_desc = ad_pwdFailureTime;
2913 mods->sml_flags = SLAP_MOD_INTERNAL;
2914 mods->sml_next = NULL;
2915 modtail->sml_next = mods;
2916 modtail = mods;
2926 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2927 mods->sml_op = LDAP_MOD_REPLACE;
2928 mods->sml_desc = ad_pwdReset;
2929 mods->sml_flags = SLAP_MOD_INTERNAL;
2930 mods->sml_numvals = 1;
2931 mods->sml_values = (BerVarray) ch_calloc( sizeof( struct berval ), 2 );
2932 mods->sml_nvalues = (BerVarray) ch_calloc( sizeof( struct berval ), 2 );
2934 ber_dupbv( &mods->sml_values[0], (struct berval *)&slap_true_bv );
2935 ber_dupbv( &mods->sml_nvalues[0], (struct berval *)&slap_true_bv );
2937 mods->sml_next = NULL;
2938 modtail->sml_next = mods;
2939 modtail = mods;
2941 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2942 mods->sml_op = LDAP_MOD_DELETE;
2943 mods->sml_desc = ad_pwdReset;
2944 mods->sml_flags = SLAP_MOD_INTERNAL;
2945 mods->sml_next = NULL;
2946 modtail->sml_next = mods;
2947 modtail = mods;
2953 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2954 mods->sml_op = LDAP_MOD_DELETE;
2955 mods->sml_flags = SLAP_MOD_INTERNAL;
2956 mods->sml_desc = ad_pwdLastSuccess;
2957 mods->sml_next = NULL;
2958 modtail->sml_next = mods;
2959 modtail = mods;
2965 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2966 mods->sml_op = LDAP_MOD_DELETE;
2967 mods->sml_flags = SLAP_MOD_INTERNAL;
2968 mods->sml_desc = ad_pwdHistory;
2969 mods->sml_next = NULL;
2970 modtail->sml_next = mods;
2971 modtail = mods;
2992 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
2993 mods->sml_op = LDAP_MOD_DELETE;
2994 mods->sml_flags = SLAP_MOD_INTERNAL;
2995 mods->sml_desc = ad_pwdHistory;
2996 mods->sml_numvals = hsize - pp.pwdInHistory + 1;
2997 mods->sml_values = ch_calloc( sizeof( struct berval ),
2999 BER_BVZERO( &mods->sml_values[ hsize - pp.pwdInHistory + 1 ] );
3001 BER_BVZERO( &mods->sml_values[i] );
3002 ber_dupbv( &(mods->sml_values[i]), &p->bv );
3004 mods->sml_next = NULL;
3005 modtail->sml_next = mods;
3006 modtail = mods;
3022 mods = (Modifications *) ch_malloc( sizeof( Modifications ) );
3023 mods->sml_op = LDAP_MOD_ADD;
3024 mods->sml_flags = SLAP_MOD_INTERNAL;
3025 mods->sml_type.bv_val = NULL;
3026 mods->sml_desc = ad_pwdHistory;
3027 mods->sml_nvalues = NULL;
3028 mods->sml_numvals = 1;
3029 mods->sml_values = ch_calloc( sizeof( struct berval ), 2 );
3030 mods->sml_values[ 1 ].bv_val = NULL;
3031 mods->sml_values[ 1 ].bv_len = 0;
3032 make_pwd_history_value( timebuf, &mods->sml_values[0], pa );
3033 mods->sml_next = NULL;
3034 modtail->sml_next = mods;
3035 modtail = mods;
3083 mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
3084 mods->sml_op = LDAP_MOD_DELETE;
3085 mods->sml_desc = ad_pwdFailureTime;
3086 mods->sml_flags = SLAP_MOD_INTERNAL;
3087 mods->sml_next = NULL;
3088 modtail->sml_next = mods;
3089 modtail = mods;