Authorization Error帝师黄老师是怎么回事事啊老师

温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
专注于SAP BI、HANA,曾做过多个SAP BI、HANA、ABAP、PI项目,担任过多次项目PM。真诚为客户服务。
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(2273)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'SAP BW Authorization权限设置(RSECADMIN)',
blogAbstract:'SAP BI security is an integral part of any BI implementation. \nIntegrating all the data coming from various source systems and \nproviding the data access based on the user’s role is one of the major \nconcerns of all the BI Projects.& \nSecurity of SAP R/3-ECC systems\n are based on the activities while SAP BI security is focused on what \ndata user can access.& Security in BI is categorized by major 2 \ncategories:',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:7,
publishTime:7,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:1,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'专注于SAP BI、HANA,曾做过多个SAP BI、HANA、ABAP、PI项目,担任过多次项目PM。真诚为客户服务。',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
扫一扫第一时间给您推送最新课程、最热门资讯
邮件订阅每周公开课与热门资讯:
mydataframe&-read.csv(&:c/RStudio/student.csv&)
去掉c前面的冒号
使用read.csv()函数的时候,第一个参数,就是path,注意path的正确表示。
要回复问题请先或
关注: 2 人
使用其他账号登录
还没有有PPV课账户
确认密码:
角色选择:
数据分析师
大数据工程师
数据挖掘工程师
保持登录(一个月)
阅读并已同意
已有PPV课账户I am having an issue using the GetAuthorizationGroups method of the UserPrincipal class in a web application.
Using the following code, I am receiving "While trying to retrieve the authorization groups, an error (5) occurred"
PrincipalContext context = new PrincipalContext(ContextType.Domain, null, "DC=MyCompany,DC=COM", "username", "password");
UserPrincipal p = UserPrincipal.FindByIdentity(context, IdentityType.SamAccountName, "joe.blogs");
var groups = p.GetAuthorizationGroups();
I believe this code works to an extent.
When I view the context object, I can see the server and username/password have been resolved correctly in the object
When I view the p object, I can see AD details have been populated like phone no etc.
Here is the stack trace from the error.
[PrincipalOperationException: While trying to retrieve the authorization groups, an error (5) occurred.]
System.DirectoryServices.AccountManagement.AuthZSet..ctor(Byte[] userSid, NetCred credentials, ContextOptions contextOptions, String flatUserAuthority, StoreCtx userStoreCtx, Object userCtxBase) +317279
System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ(Principal p) +441
System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroupsHelper() +78
System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroups() +11
By removing the username and password details from the PrincipalContext constructor and changing the applicationpool (in iis7) to run as the same user () - the following code works.
PrincipalContext context = new PrincipalContext(ContextType.Domain, null, "DC=MyCompany,DC=COM");
UserPrincipal p = UserPrincipal.FindByIdentity(context, IdentityType.SamAccountName, "joe.blogs");
var groups = p.GetAuthorizationGroups();
I need to get the code in the first example to work - I do not want run the application pool as a domain user just to get this code working.
解决方案 I dealt with this same problem. See discussion on similar question.
Solution is below:
public List&GroupPrincipal& GetGroups(string userName)
var result = new List&GroupPrincipal&();
PrincipalContext ctx = GetContext(); /*function to get domain context*/
UserPrincipal user = UserPrincipal.FindByIdentity(ctx, userName);
if (user != null)
PrincipalSearchResult&Principal& groups = user.GetAuthorizationGroups();
var iterGroup = groups.GetEnumerator();
using (iterGroup)
while (iterGroup.MoveNext())
Principal p = iterGroup.C
result.Add((GroupPrincipal) p);
catch (PrincipalOperationException)
本文地址: &
我现在用的是UserPrincipal类的GetAuthorizationGroups方法,在Web应用程序中有一个问题。
使用下面的code,我收到“试图获取授权组,一个错误(5)发生”
PrincipalContext上下文=新PrincipalContext(ContextType.Domain,空,“DC = myCompany中,DC = COM”,“用户名”,“密码”);
UserPrincipal p值= UserPrincipal.FindByIdentity(上下文,IdentityType.SamAccountName,“joe.blogs”);
变种组= p.GetAuthorizationGroups();
我相信这code工作在一定程度上。
当我查看上下文对象,我可以看到服务器和用户名/密码已在对象正确地解析
当我查看p对象,我可以看到AD细节都被填充像电话号码等。
下面是错误的堆栈跟踪。
[PrincipalOperationException:虽然试图检索授权组,(5)发生错误]
System.DirectoryServices.AccountManagement.AuthZSet..ctor(字节[] userSid,NetCred凭据,ContextOptions contextOptions,串flatUserAuthority,StoreCtx userStoreCtx,对象userCtxBase)317279
System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ(首席P)441
System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroupsHelper()+78
System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroups()+11
通过从PrincipalContext构造函数删除用户名和密码信息,并改变applicationpool(在IIS7),以相同的用户()运行 - 以下code ++工程
PrincipalContext上下文=新PrincipalContext(ContextType.Domain,空,“DC = myCompany中,DC = COM”);
UserPrincipal p值= UserPrincipal.FindByIdentity(上下文,IdentityType.SamAccountName,“joe.blogs”);
变种组= p.GetAuthorizationGroups();
我需要得到code。在第一个例子中的工作 - 我不想要运行的应用程序池作为域用户只是为了得到这个code工作。
解决方案 我处理了这个相同的问题。查看类似的问题的讨论。
解决方案是如下:
公开名单< GroupPrincipal> GetGroups(用户名字符串)
VAR的结果=新名单,其中,GroupPrincipal>();
PrincipalContext CTX =的getContext(); / *函数来获取域上下文* /
UserPrincipal用户= UserPrincipal.FindByIdentity(CTX,用户名);
如果(用户!= NULL)
PrincipalSearchResult<主>基团= user.GetAuthorizationGroups();
变种iterGroup = groups.GetEnumerator();
使用(iterGroup)
而(iterGroup.MoveNext())
主要P = iterGroup.C
result.Add((GroupPrincipal)p)的;
赶上(PrincipalOperationException)
本文地址: &
扫一扫关注官方微信

我要回帖

更多关于 中餐厅崔老师是谁 的文章

 

随机推荐