Пример #1
0
 private Authentication CreateAuthentication()
 {
     AuthenticationInfo inf =
         new AuthenticationInfo(new AuthSystem(AuthSystemType.APPLICATION, "Sample SIF Application"));
     inf.DistinguishedName = "cn=Example User, cn=Users, dc=sifinfo, dc=org";
     inf.Username = "******";
     Authentication auth = new Authentication(Adk.MakeGuid(), Adk.MakeGuid(), AuthSifRefIdType.STAFFPERSONAL);
     auth.AuthenticationInfo = inf;
     return auth;
 }
Пример #2
0
 private Authentication BuildAuthentication()
 {
     AuthSystem sys = (new AuthSystem( AuthSystemType.NETWORK, "Unit Tests" ));
     AuthenticationInfo inf = new AuthenticationInfo( sys );
     inf.Username = "******";
     Authentication auth = new Authentication( REFID_GUID, SIFREFID_GUID, AuthSifRefIdType.STUDENTPERSONAL );
     auth.AuthenticationInfo = inf;
     return auth;
 }