Closed GoogleCodeExporter closed 9 years ago
During Bulk Authorization, the username sent by the connector for authorization
may
not be in a format that SharePoint expects. For example, the username that
connector
sends is like mycomp.com\username. This user is typically stored as
mycomp\username
in SharePoint. So, for authorization, the web service has to map
mycomp.com\username
to mycomp\username. There can be more use cases like this like, connector may
just
send username and no domain info.
To handle any discrepency between the username formats as sent by the connector
and
as used by the SharePoint, The GsBulkAuthorization web service make use of a
utility
method of SharePoint named SPUtility.ResolveWindowsPrincipal. This method is
expected
to resolve a given username and return a corresponding object which can be used
for
authorization.
The current bug is becasue of the fact that this API
SPUtility.ResolveWindowsPrincipal is itself failing. Another alternative could
be
SPUtility.ResolvePrincipal. But, we have verified that it also fails in the
environment where SPUtility.ResolveWindowsPrincipal was failing.
A workaround for this problem is to remove any such utiity methods and not do
username resolution at all. Rather, accept the username as it comes into the
request,
in above example mycomp.com\username. As obvious, this workaround relies on the
username format and will work only if username sent by the connector is in the
same
format as expected by SharePoint i.e mycomp\username.
Original comment by th.nitendra
on 22 Apr 2010 at 2:04
Original comment by rakeshs101981@gmail.com
on 20 May 2010 at 6:21
Original comment by rakeshs101981@gmail.com
on 6 Oct 2010 at 7:50
Original comment by shashank...@gmail.com
on 17 Mar 2011 at 11:57
This issue is filed as Google issue #6513767
Original comment by tdnguyen@google.com
on 18 May 2012 at 12:17
Original issue reported on code.google.com by
shashank...@gmail.com
on 4 Mar 2010 at 8:06