ldap

Login with LDAP using JSF 2,1 & Apache Tomcat

你离开我真会死。 提交于 2019-12-20 07:47:13
问题 More than a problem, I need to perform authentication using jsf. I have developed a login, which receives a username and password that are stored in MySQL. Upon login from the Active Directory, this should take the username and password of AD, which, I suppose, should be the same as that of MySQL. Then, to enter the system, you no longer see the login, but directly the main or home page. I hope your help and thanks in advance. Greetings. 回答1: This my solution, it worked for me: Edit faces

Limiting the attributes returned in an LDAP query

可紊 提交于 2019-12-20 07:09:43
问题 How do I limit the attributes that are returned in an LDAP query through System.DirectoryServices? I have been using a DirectorySearcher and adding the properties that I want to DirectorySearcher.PropertiesToLoad. The problem is that this just makes sure that the added properties are included in the DirectoryEntry.Properties as well as some default list. Is there any way to specify the only properties that you want returned? DirectoryEntry base = new DiectoryEntry(rootPath, null, null,

Search Active Directory for an OU using a partial path to the OU

故事扮演 提交于 2019-12-20 05:25:36
问题 Is there a way in AD Query syntax, to find an OU's full path by searching on its partial path? For example, the full path to my OU is: OU=Clerks,OU=OfficeA,OU=Administration,DC=domain,DC=local Now, I'd like to try and search and find that object by using the partial path: OU=Clerks,OU=OfficeA I'd like to be able to search something like: (&(objectCategory=organizationalUnit)(path=Clerks/OfficeA*)) I can't find any syntax examples of how to accomplish something like this. A program I'm

Changing Active Directory user password from java program

假装没事ソ 提交于 2019-12-20 05:16:28
问题 I have Active Directory, with Users in it, i am trying to change a users password from a Java Program as follows: Properties prop = new Properties(); prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory"); prop.put(Context.SECURITY_AUTHENTICATION, "simple"); prop.put(Context.SECURITY_PRINCIPAL,"user1"); prop.put(Context.SECURITY_CREDENTIALS,"pass1"); prop.put(Context.SECURITY_PROTOCOL,"ADSecurityProtocol"); prop.put(Context.PROVIDER_URL, "ldap://host:389/OU=My Org,DC

Need to call ldap in App Engine's Python environment

戏子无情 提交于 2019-12-20 04:55:22
问题 I'm trying to add an Ldap authentication backend to a Django project running over GAE. The project runs ok. The only problem really is Ldap is not supported by GAE. I mean: import ldap will generate a server error. Nonetheless, I do know that I could make my own modules available through zipimport. Does anybody have any experience solving similar issues? Can this sort of workaround be an effective solution considering lower level dependencies? Thanks! A. 回答1: App Engine doesn't let you open

Can't get connection with AD from Java

断了今生、忘了曾经 提交于 2019-12-19 12:05:16
问题 I'm trying retrieve some information from MS AD: members of the specific branch, department names, positions, etc. I used a lot of examples, including Apache Directory LDAP API and UnboundID, but I can't get the connection with AD. RDNs: C:\Users\Aleksey> whoami /fqdn CN=my common name here, OU=my organization unit here, OU=organization unit 2 here, OU=organization unit 1 here, OU=main organization unit here, DC=.my domain here, DC=domain 2 here, DC=main domain here For searching, I use the

How to read TermainsServices IADsTSUserEx Property from LDAP in C#?

风流意气都作罢 提交于 2019-12-19 10:24:06
问题 I have read the following properties from AD, TerminalServicesProfilePath TerminalServicesHomeDirectory TerminalServicesHomeDrive I've tried DirectoryEntry and DirectorySearcher. But they does not include the properties. I found some example in vbscript and VC to read them. However I failed to make it working in C#. Am I missing some tricky thing? EDIT: Am I have to run it on "Windows Server" to make it works? Can it be read from win XP? 回答1: I don't remember exactly, but it's something like

Active Directory Attribute List Using c#

巧了我就是萌 提交于 2019-12-19 10:23:30
问题 How i get the list of active directory user attributes(not of particular user i.e.all attributes) e.g.cn,mail etc. using c#? 回答1: If you're on .NET 3.5 and up, you need to check out the classes in System.DirectoryServices.ActiveDirectory for this. You need to look at classes like ActiveDirectorySchema and ActiveDirectorySchemaClass. You can get hold of the current AD schema by using: ActiveDirectorySchema currSchema = ActiveDirectorySchema.GetCurrentSchema(); When you have the current schema,

How to get password of active directory by ldap in php?

自闭症网瘾萝莉.ら 提交于 2019-12-19 07:38:23
问题 I have problem about password in Active Directory. I want to get password from "username" of user I tried function "ldap_search", but I do not find correctly attribute for password I tried as: password, userpassword, userPassword, unicodePwd, unicodepwd, but they are not correct. I look forward to helping of everyone Thanks for all :D trankinhly 回答1: Passwords in Active Directory are not retrievable. Nor are they in most directories. (eDirectory has a password policy, that if you bind as the

DirectorySearcher FindOne() delay on initial execution

一个人想着一个人 提交于 2019-12-19 06:57:26
问题 I'm seeing an initial delay of 2-5 seconds between the time that I execute DirectorySearcher FindOne() and the first network packet I see go out to the LDAP server. After the initial execution, subsequent executions complete instantly for about 45 seconds. After that period of fast executions, the next execution will be delayed and again all subsequent executions will complete instantly. It seems like there's some sort of caching going on but I haven't been able to find any resources