Lines Matching refs:roles
72 { "rbac-default-roles-base-dn", "rolesDN", 2, 2, 0,
76 "DESC 'default base DN for RBAC roles ' "
451 * load these roles into a response with a sequence nested within a
458 * add all three ber_bvarray_add_x( &roles, &tmpbv, NULL );
459 * close it ber_printf( ber, "t{W}", LDAP_TAG_EXOP_RBAC_ROLES, roles );
464 * loading these roles into the response within a sequence: (Yes, we are doing this here.)
469 * add all three ber_bvarray_add_x( &roles, &tmpbv, NULL );
470 * close it ber_printf( ber, "tW", LDAP_TAG_EXOP_RBAC_ROLES, roles );
475 BerVarray roles = NULL;
476 if ( sessp->roles ) {
482 //BerVarray roles = NULL;
483 for ( i = 0; !BER_BVISNULL( &sessp->roles[i] ); i++ ) {
484 tmpbv.bv_val = sessp->roles[i].bv_val;
485 tmpbv.bv_len = sessp->roles[i].bv_len;
487 ber_bvarray_add_x( &roles, &tmpbv, NULL );
498 ber_bvarray_add_x(&roles, &tmpbv, NULL);
511 LDAP_TAG_EXOP_RBAC_ROLES, roles);
513 // TODO: determine why free on roles array causes a seg fault:
514 //ber_bvarray_free_x(roles, NULL);
528 // END LOAD ROLES INTO RESPONSE
585 * load these roles into a response with a sequence nested within a
592 * add all three ber_bvarray_add_x( &roles, &tmpbv, NULL );
593 * close it ber_printf( ber, "t{W}", LDAP_TAG_EXOP_RBAC_ROLES, roles );
598 * loading these roles into the response within a sequence: (Yes, we are doing this here.)
603 * add all three ber_bvarray_add_x( &roles, &tmpbv, NULL );
604 * close it ber_printf( ber, "tW", LDAP_TAG_EXOP_RBAC_ROLES, roles );
609 BerVarray roles = NULL;
610 if ( sessp->roles ) {
616 //BerVarray roles = NULL;
617 for ( i = 0; !BER_BVISNULL( &sessp->roles[i] ); i++ ) {
618 tmpbv.bv_val = sessp->roles[i].bv_val;
619 tmpbv.bv_len = sessp->roles[i].bv_len;
621 ber_bvarray_add_x( &roles, &tmpbv, NULL );
628 ber_bvarray_add_x(&roles, &tmpbv, NULL);
641 LDAP_TAG_EXOP_RBAC_ROLES, roles);
643 // TODO: determine why free on roles array causes a seg fault:
644 //ber_bvarray_free_x(roles, NULL);
658 // END LOAD ROLES INTO RESPONSE
719 // Order: 1. sessionId, 2. tenantId, 3. userId, 4. password and 5. roles
775 // 5. ROLES
777 tag = ber_scanf( ber, "W", &reqp->roles);
899 "failed to activate roles to session!\n" );
902 "rbac_create_session: failed to activate roles into session";
1371 //assert(!BER_BVISEMPTY(&reqp->roles[0]));
1374 for ( i = 0; !BER_BVISNULL( &userp->roles[i] ); i++ ) {
1375 //if (!ber_bvstrcasecmp(&userp->roles[i], &reqp->roles[0])) {
1376 if ( !ber_bvstrcasecmp( &userp->roles[i], &reqp->role ) ) {
1394 for ( i = 0; !BER_BVISNULL( &sessp->roles[i] ); i++ ) {
1395 //if (!ber_bvstrcasecmp(&sessp->roles[i], &reqp->roles[0])) {
1396 if ( !ber_bvstrcasecmp( &sessp->roles[i], &reqp->role ) ) {
1504 //tag = ber_scanf( ber, "W", &reqp->roles);
1505 //tag = ber_scanf( ber, "m", &reqp->roles);
1506 //tag = ber_scanf( ber, "m", &reqp->roles[0]);
1513 //ber_dupbv(&reqp->roles[0], &bv);
1649 if ( BER_BVISNULL( &reqp->role ) || !sessp->roles ||
1650 BER_BVISNULL( &sessp->roles[0] ) ) {