I have mojoportal as a intranet using LDAP with Active Directory. For a feature I am working on for the specific software we use, I need the AD sid of the user that is logged in. Unfortunately, I can't get this information from the software it self (for what ever reason the database only has the SID and does a lookup with AD for the username translation). As I don't want to fork the code, I am adding the getting of the SID in where I need it. I have an ascx for a feature. (For right now I have the data, business, and ui code in the same place). I have this <%@ Import Namespace="System.DirectoryServices" %>. The System.DirectoryServices is in the References. These files are under the mojoPortal.Web project in its own folder. When I use DirectoryEntry obDirEntry; it says "The type or namespace name 'DirectoryEntry' could not be found (are you missing a using directive or an assembly reference?)".
Any ideas on where to go from here? I need to get something like "S-1-5-21-3282516150-4032899499-4205601400-2899".
Thank you for any help.