Searched refs:bv_val (Results 1 - 25 of 407) sorted by relevance

1234567891011>>

/netbsd-current/external/bsd/openldap/dist/servers/slapd/pwmods/
H A Dargon2.c93 salt.bv_val = ber_memalloc( salt.bv_len );
95 if ( salt.bv_val == NULL ) {
99 if ( lutil_entropy( (unsigned char*)salt.bv_val, salt.bv_len ) ) {
100 ber_memfree( salt.bv_val );
104 p = hash->bv_val = ber_memalloc( scheme->bv_len + encoded_length );
106 ber_memfree( salt.bv_val );
110 AC_MEMCPY( p, scheme->bv_val, scheme->bv_len );
117 passwd->bv_val, passwd->bv_len,
118 salt.bv_val, salt_length, hash_length,
123 ber_memfree( salt.bv_val );
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/
H A Dreferral.c52 return targetDN ? ch_strdup( targetDN->bv_val ) : NULL;
56 bvin.bv_val = (char *)refDN;
71 return nrefDN.bv_len ? nrefDN.bv_val : ch_strdup( baseDN->bv_val );
77 ch_free( nrefDN.bv_val );
85 ch_free( nrefDN.bv_val );
86 ch_free( ntargetDN.bv_val );
91 ch_free( nrefDN.bv_val );
92 ch_free( nbaseDN.bv_val );
93 return ntargetDN.bv_val;
[all...]
H A Dsaslauthz.c143 u = id->bv_val[ 0 ];
154 user->bv_val = ber_bvchr( id, ':' );
158 user->bv_val[ 0 ] = '\0';
159 user->bv_val++;
160 user->bv_len = id->bv_len - ( user->bv_val - id->bv_val );
162 if ( id->bv_val[1] == '.' ) {
163 id->bv_val[1] = '\0';
164 mech->bv_val = id->bv_val
[all...]
H A Dschema_init.c259 if ( in->bv_val[0] != LBER_SEQUENCE ) return LDAP_INVALID_SYNTAX;
435 bvdn.bv_val = in->bv_val + len;
442 bvtu.bv_val = (char *)ber->ber_ptr;
498 thisUpdate.bv_val = tubuf;
507 issuer_dn.bv_val, thisUpdate.bv_val );
511 ber_memfree( issuer_dn.bv_val );
662 : memcmp( value->bv_val, asserted->bv_val, valu
[all...]
H A Dslapdn.c77 dn.bv_val, rc,
87 printf( "%s\n", pdn.bv_val );
91 printf( "%s\n", ndn.bv_val );
98 dn.bv_val,
99 ndn.bv_val, pdn.bv_val );
103 ch_free( ndn.bv_val );
104 ch_free( pdn.bv_val );
H A Dslapacl.c58 desc->ad_cname.bv_val,
62 "****" : val->bv_val ) : "",
93 bd->be_suffix ? bd->be_suffix[0].bv_val : "" );
124 authcID.bv_val, authcDN.bv_val );
133 authcID.bv_val, rc,
145 authcDN.bv_val, rc,
150 ch_free( authcDN.bv_val );
158 authzID.bv_val, authzDN.bv_val );
[all...]
H A Dfilter.c214 op->o_connid, type.bv_val, err );
390 ssa.sa_initial.bv_val = NULL;
392 ssa.sa_final.bv_val = NULL;
404 op->o_connid, desc.bv_val, (long) rc );
420 desc.bv_val );
434 if ( value.bv_val == NULL || value.bv_len == 0 ) {
441 if ( ssa.sa_initial.bv_val != NULL
443 || ssa.sa_final.bv_val != NULL )
452 if ( ssa.sa_final.bv_val != NULL ) {
460 if ( ssa.sa_final.bv_val !
[all...]
H A Daci.c173 switch ( *bv.bv_val ) {
261 if ( strncasecmp( val->bv_val, left.bv_val, left.bv_len ) == 0 ) {
289 bv.bv_val, attr->bv_val );
296 bv.bv_val, attr->bv_val );
309 bv.bv_val, mask );
413 bv.bv_val = (char *)&buf;
425 slap_sl_free( ndn.bv_val, o
[all...]
H A Dschema.c91 vals[0].bv_val = ber_bvchr( &rdn, '=' );
93 if( vals[0].bv_val == NULL ) {
98 vals[0].bv_val++;
99 vals[0].bv_len = rdn.bv_len - (vals[0].bv_val - rdn.bv_val);
110 nvals[0].bv_val = ber_bvchr( &frontendDB->be_schemandn, '=' );
111 assert( nvals[0].bv_val != NULL );
112 nvals[0].bv_val++;
114 (nvals[0].bv_val - frontendDB->be_schemandn.bv_val);
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-asyncmeta/
H A Dmap.c92 rc = ldap_url_parse( a_vals[ i ].bv_val, &ludp );
110 if ( olddn.bv_val != dn.bv_val )
114 ludp->lud_dn = dn.bv_val;
116 dc->op->o_tmpfree( dn.bv_val, dc->memctx );
123 ber_memfree_x( a_vals[ i ].bv_val, dc->op->o_tmpmemctx );
126 ludp->lud_dn = olddn.bv_val;
146 if ( bv.bv_val != a_vals[i].bv_val ) {
147 ber_memfree_x( a_vals[i].bv_val, d
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/overlays/
H A Drwmdn.c64 if ( mdn.bv_val == in->bv_val && !BER_BVISNULL( ndn ) ) {
70 if ( mdn.bv_val != in->bv_val ) {
71 ch_free( mdn.bv_val );
97 if ( mdn.bv_val == in->bv_val && !BER_BVISNULL( pdn ) ) {
103 if ( mdn.bv_val != in->bv_val ) {
104 ch_free( mdn.bv_val );
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-sock/
H A Dextended.c41 op->ore_reqoid.bv_val, op->o_req_dn.bv_val );
54 fprintf( fp, "oid: %s\n", op->ore_reqoid.bv_val );
59 b64.bv_val = op->o_tmpalloc( b64.bv_len + 1, op->o_tmpmemctx );
62 (unsigned char *) op->ore_reqdata->bv_val, op->ore_reqdata->bv_len,
63 b64.bv_val, b64.bv_len );
66 assert( strlen(b64.bv_val) == b64.bv_len );
68 fprintf( fp, "value: %s\n", b64.bv_val );
70 op->o_tmpfree( b64.bv_val, op->o_tmpmemctx );
/netbsd-current/external/bsd/openldap/dist/include/
H A Dlber_pvt.h157 ? 1 : strncmp((v1)->bv_val, (v2)->bv_val, (v1)->bv_len) ))
166 ? 1 : strncasecmp((v1)->bv_val, (v2)->bv_val, (v1)->bv_len) ))
169 ( (v1)->bv_len == 1 && (v1)->bv_val[0] == (c) )
175 ((char *) memchr( (bv)->bv_val, (c), (bv)->bv_len ))
178 ((char *) lutil_memrchr( (bv)->bv_val, (c), (bv)->bv_len ))
182 (dst)->bv_val = memchr( (bv)->bv_val, (c), (bv)->bv_len ); \
183 (dst)->bv_len = (dst)->bv_val
[all...]
/netbsd-current/external/bsd/openldap/dist/libraries/liblutil/
H A Dpasswd.c178 for( s=(struct pw_scheme *)pw_schemes_default; s->name.bv_val; s++) {
201 bv.bv_val = strchr( scheme, '}' );
202 if ( !bv.bv_val )
205 bv.bv_len = bv.bv_val - scheme + 1;
206 bv.bv_val = (char *) scheme;
250 if( !is_allowed_scheme( scheme->name.bv_val, allowed ) ) {
255 if( strncasecmp( passwd->bv_val, scheme->name.bv_val, scheme->name.bv_len ) == 0 ) {
256 bv->bv_val = &passwd->bv_val[schem
[all...]
H A Dpassfile.c51 passwd->bv_val = NULL;
70 passwd->bv_val = (char *) ber_memalloc( passwd->bv_len + 1 );
71 if( passwd->bv_val == NULL ) {
82 char *p = (char *) ber_memrealloc( passwd->bv_val,
85 ber_memfree( passwd->bv_val );
86 passwd->bv_val = NULL;
93 passwd->bv_val = p;
96 nr = fread( &passwd->bv_val[nread], 1, nleft, f );
99 ber_memfree( passwd->bv_val );
100 passwd->bv_val
[all...]
/netbsd-current/external/bsd/openldap/dist/contrib/slapd-modules/nssov/
H A Dservice.c64 buf->bv_len = snprintf(buf->bv_val, buf->bv_len, "(&%s(%s=%s)(%s=%s))",
65 mi->mi_filter.bv_val,
66 mi->mi_attrs[0].an_desc->ad_cname.bv_val, bv2.bv_val,
67 mi->mi_attrs[2].an_desc->ad_cname.bv_val, bv3.bv_val );
72 buf->bv_len = snprintf(buf->bv_val, buf->bv_len, "(&%s(%s=%s))",
73 mi->mi_filter.bv_val, mi->mi_attrs[0].an_desc->ad_cname.bv_val,
74 bv2.bv_val );
[all...]
H A Dgroup.c84 buf->bv_len = snprintf(buf->bv_val, buf->bv_len, "(&%s(%s=%s))",
85 cbp->mi->mi_filter.bv_val, cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val,
86 cbp->user.bv_val );
91 buf->bv_len = snprintf(buf->bv_val, buf->bv_len, "(&%s(|(%s=%s)(%s=%s)))",
92 cbp->mi->mi_filter.bv_val,
93 cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val, cbp->user.bv_val,
94 cbp->mi->mi_attrs[MEM_KEY].an_desc->ad_cname.bv_val, dn.bv_val );
[all...]
H A Dpasswd.c84 char *name = bv->bv_val;
123 if (!strncmp(dn->bv_val,ad->ad_cname.bv_val,ad->ad_cname.bv_len) &&
124 dn->bv_val[ad->ad_cname.bv_len] == '=')
129 bv.bv_val = dn->bv_val + ad->ad_cname.bv_len + 1;
156 op->o_tmpfree( bv->bv_val, op->o_tmpmemctx );
189 op2.ors_filter = str2filter_x( op, filter.bv_val );
230 entry->e_name.bv_val, cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val );
[all...]
H A Drpc.c70 entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val );
93 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val );
97 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val );
99 number=(int)strtol(a->a_vals[0].bv_val,&tmp,0);
103 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val );
128 filter.bv_val
[all...]
H A Dprotocol.c68 entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val );
91 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val );
95 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val );
97 proto=(int)strtol(a->a_vals[0].bv_val,&tmp,0);
101 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val );
126 filter.bv_val
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-meta/
H A Dsuffixmassage.c76 ( dn->bv_val ? dn->bv_val : dmy ),
77 dc->conn, &res->bv_val ) )
80 if ( res->bv_val != NULL ) {
81 res->bv_len = strlen( res->bv_val );
88 BER_BVISNULL( dn ) ? "" : dn->bv_val,
89 BER_BVISNULL( res ) ? "" : res->bv_val );
110 if ( res->bv_val == dmy ) {
H A Dmap.c76 return ( strcasecmp( map1->src.bv_val, map2->src.bv_val ) );
85 return ( ( strcasecmp( map1->src.bv_val, map2->src.bv_val ) == 0 ) ? -1 : 0 );
219 na[j++] = mapped.bv_val;
234 na[j++] = mapped.bv_val;
292 if ( vtmp.bv_val != value->bv_val ) {
329 ber_memfree( vtmp.bv_val );
332 ber_memfree_x( vtmp.bv_val, memct
[all...]
/netbsd-current/external/bsd/openldap/dist/contrib/slapd-modules/rbac/
H A Drbacreq.c66 ber_memfree( reqp->sessid.bv_val );
69 ber_memfree( reqp->tenantid.bv_val );
73 ber_memfree( reqp->uid.bv_val );
76 ber_memfree( reqp->authtok.bv_val );
83 ber_memfree( reqp->opname.bv_val );
86 ber_memfree( reqp->objname.bv_val );
89 ber_memfree( reqp->objid.bv_val );
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-sql/
H A Dutil.c80 assert( dest->bb_val.bv_val == NULL
81 || dest->bb_val.bv_len == strlen( dest->bb_val.bv_val ) );
88 if ( dest->bb_val.bv_val == NULL || dest->bb_len == 0 ) {
89 dest->bb_val.bv_val = (char *)ber_memalloc_x( BACKSQL_STR_GROW * sizeof( char ), memctx );
107 tmp_dest = (char *)ber_memrealloc_x( dest->bb_val.bv_val,
115 dest->bb_val.bv_val = tmp_dest;
124 AC_MEMCPY( dest->bb_val.bv_val + cdlen, cstr, cslen + 1 );
131 dest->bb_val.bv_val );
148 assert( dest->bb_val.bv_val == NULL
149 || dest->bb_val.bv_len == strlen( dest->bb_val.bv_val ) );
[all...]
/netbsd-current/external/bsd/openldap/dist/contrib/slapd-modules/passwd/sha2/
H A Dslapd-sha2.c57 digest.bv_val = (char *) hash256;
59 salt.bv_val = saltdata;
62 if (lutil_entropy((unsigned char *)salt.bv_val, salt.bv_len) < 0) {
67 SHA256_Update(&ct, (const uint8_t*)passwd->bv_val, passwd->bv_len);
68 SHA256_Update(&ct, (const uint8_t*)salt.bv_val, salt.bv_len);
83 digest.bv_val = (char *) hash256;
87 SHA256_Update(&ct, (const uint8_t*)passwd->bv_val, passwd->bv_len);
105 digest.bv_val = (char *) hash384;
107 salt.bv_val = saltdata;
110 if (lutil_entropy((unsigned char *)salt.bv_val, sal
[all...]

Completed in 372 milliseconds

1234567891011>>