Author Archive
Custom Method for Checking Permissions on a SPWeb Object
by liquidpooled on Nov.21, 2008, under .NET, Microsoft, Office, Sharepoint Server, TechNet, Visual Studio 2005, Visual Studio 2008, Windows SharePoint Services
The out-of-the-box method DoesUserHavePermissions() on an SPWeb object does not take indirect membership into account (i.e. the current user is a member of a domain group that has access the the SPWeb being checked). To get around this, I use the following method (DoesUserHavePermssionsToWeb(SPUser, SPWeb)):
Using DSQUERY to find distinguished names in Active Directory
by liquidpooled on Nov.20, 2008, under Microsoft, TechNet
If you ever need to find the distinguished name of a user in Active Directory, you can use the following DSQUERY command.
DSQUERY.exe * -limit 0 -filter "(&(objectCategory=Person)(objectClass=User)(!userAccountControl:1.2.840.113556.1.4.803:=2))" > "c:\activeUsers.txt"
The above command will output all of the active users in the current login name to a text file called activeUsers.txt in the root of the C: drive.
Planned Blog Maintenance
by liquidpooled on Nov.20, 2008, under News, Site News
A short outage may occur on Friday, November 21, 2009 between the hours of 9 and 10PM EST as my hoster does some maintenance on the server I’m on.
A personal note…
by liquidpooled on Nov.19, 2008, under News
My wife is pregnant with our second child, due 7/21/2009. From one adventure to another…