Questions tagged [principal]

This tag doesn't currently have an excerpt. Help contribute by writing one

173 questions
0
votes
1 answer

How to avoid groupPrincipal.Members.Add throwing a NoMatchingPrincipalException

I've get an Active Directory Domain in which I create group objects under a certain newly created OU as shown below, e.g. the groups under SubOuB. The global groups under GlobalGroups are already there. +MainOu +--SubOuA +--GroupA_A …
Gorgsenegger
  • 7,356
  • 4
  • 51
  • 89
0
votes
1 answer

How to preserve principal info in Tomcat (i.e. setPrincipal?)

I'm trying to build a second way for user login alongside the tomcat realm feature. That means an unauthenticated user can either: 1. signing in by evoking realm 2. providing a valid token and getting logged in automatically I'm trying to achieve 2.…
NSF
  • 2,499
  • 6
  • 31
  • 55
-1
votes
2 answers

Sonar hostpot: main aplication in drop wizard

I am working on an application with Dropwizard and the sonnar is throwing a hostpot error when passing the args to be able to lift the application: public static void main(final String[] args) throws Exception { new…
-1
votes
1 answer

Why to create a custom principal interface when you want to create a Custom Principal in Asp.net MVC?

Recently I seaerched for how to create custom principal and I got the answer but there is one thing that I do not understand, I found this solution on stack overflow using System; using System.Collections.Generic; using System.Linq; using…
Mo Haidar
  • 3,748
  • 6
  • 37
  • 76
-2
votes
1 answer

How to edit my method to where it correctly calculates simple interest taking into account the previous year's amount as the new principal?

Create an internal static void method that receives the original amount of investment principle as a named parameter with the default value 1,000.0, the amount of annual interest as a named parameter with the default value of .01 and the number of…
Aashna
  • 5
  • 2
-2
votes
1 answer

principal = 10000, interest rate = 5% , 10000 → 20000 when will it double?

#include int main() { int x=5; //x = interest rate(5%) int y=10000; //y = principal int n = 0; //n = after years while (1) { n++; y += y*(x/100); if(y == 20000) break; } …
jinj
  • 9
  • 1
1 2 3
11
12