ldap

How can I query if a user of one domain is a member of a group in another AD domain?

谁都会走 提交于 2019-12-23 09:16:29
问题 I have a series of applications that all use the same C#, .Net 2.0 code that I've created to check and see if a user is a member of an Active Directory group. I haven't had any trouble with my code until recently, when I added a user from another, trusted AD domain to one of my AD groups. My question is how can I check to see if a user is a member of an Active Directory group, regardless of their domain. In other words, they may or may not be in the same domain as my group. Below is the code

django_auth_ldap no module named ldap

落爺英雄遲暮 提交于 2019-12-23 07:46:03
问题 I am trying to get the django_auth_module working but I don't think I managed to install it properly. I downloaded the package and ran setup.py install. Then in my settings.py file I tried to import the module ldap and it gave me the following error : ImportError: no module named ldap I am working on a CentOS 6 server. Maybe it has to do with where I should install the module? The folder is in the directory just above my site folder, but maybe that's wrong... RESOLVED : Ok, I just needed to

Extract Common Name from Distinguished Name

时光毁灭记忆、已成空白 提交于 2019-12-23 06:55:01
问题 Is there a call in .NET that parses the CN from a rfc-2253 encoded distinguished name? I know there are some third-party libraries that do this, but I would prefer to use native .NET libraries if possible. Examples of a string encoded DN CN=L. Eagle,O=Sue\, Grabbit and Runn,C=GB CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM 回答1: If you are working with an X509Certificate2 , there is a native method that you can use to extract the Simple Name. The Simple Name is equivalent to the Common Name RDN

com.sun.jndi.ldap.LdapCtxFactory : class not found in servlet

痞子三分冷 提交于 2019-12-23 05:45:09
问题 Good morning / afternoon, I have a problem with LDAP connector, when I use it in my unit test no problem, but when it was called in a application server environment, it seems to have classpath issue, but this class is delivred with java 1.6.17 (version I use). I use spring-ldap to initiate my connection. public static LdapContextSource getLdapContextSource(final String url, final String base) throws Exception { LdapContextSource ldapContextSource = new LdapContextSource(); ldapContextSource

Forms Authentication against Active Directory - LDAP Protocol

南笙酒味 提交于 2019-12-23 05:32:52
问题 I need to create a web page that authenticates users against an existing active directory. The domain is actually a cloud computing configuration where there is a domain controller and multiple other servers on the stack. I understand that objects from the System.DirectoryServices namespace can be used. However, I cant seem to path the code to the active directory through the LDAP://domain.com address. There doesnt seem to be any communication going on. I suspect there is some initial

LDAP Authentication with CakePHP

孤人 提交于 2019-12-23 05:29:35
问题 I'm trying to create an app where the authorization part is done by checking the input criteria against LDAP, on CakePHP. I'm following the text linked in this page but I'm having issues. I don't want to use any users table, I have no interest in storing the data. All I want to do, is grant the access to the users in case they have any LDAP credentials. I managed to estabilish the connection and check the data, but the app won't save the session, so the user is never logged in. Do you have

vbscript get username from mail

两盒软妹~` 提交于 2019-12-23 05:29:08
问题 It is possible to get the username from active directory by query the email address ? Query the email address by username its no problem like this: Set objSysInfo = CreateObject("ADSystemInfo") Set WshShell = CreateObject("WScript.Shell") strUser = objSysInfo.UserName Set objUser = GetObject("LDAP://" & strUser) strEMail = objUser.mail But in my scenario I have only the email and no username. Thanks for helping 回答1: I don't think you can do it off LDAP directly. It's faster to create a query

Acitve Directory: Handling attributes with LARGE_INTEGER / INTEGER8 syntax

北城余情 提交于 2019-12-23 05:22:18
问题 I have an vb.net app that handles directory service attributes. I have to display the attribute values. To get the values I use LDAP. Microsoft's Active Directory has the syntax (or type) LARGE_INTEGER / INTEGER8. I saw various LDAP-Browsers that display this type of attribute as DateTime. But Microsoft's documentation says that this syntax (or type) is a 64-bit signed integer value. My question: Does the schema definition provide an information where I can detect that an attribute with the

How to store a file in LDAP?

隐身守侯 提交于 2019-12-23 05:02:41
问题 I'm looking for the best way to store a configuration file in an LDAP server. My application used to save the user settings in an xml file. The user logins have been centralized in an LDAP server. The users are stored as "inetOrgPerson" in the LDAP server. I would like to attach the xml file to each user. What would be the best way to do it? Does a standard LDAP schema offer a class to store a text file? Or do I habe to extend the schema for my needs? 回答1: Well, the best solution would

When does WinNT:// provider query Active Directory? Or how to get SID of local group member if it is domain account

落爺英雄遲暮 提交于 2019-12-23 04:52:34
问题 Okay so I am using the WinNT provider with a DirectoryEntry class to enumerate the members of a local group, through the Members property. If the member is a local account, the DirectoryEntry will also be read from the SAM on the local machine presumably. If the member is a Domain Account however, will the provider perform a query to Active Directory when I access the properties of the DirectoryEntry object? Is there a way to differentiate the two scenarios? For example check a property on