ldap

Using PHP and LDAP to connect to Microsoft Office 365

你离开我真会死。 提交于 2019-12-21 19:27:25
问题 The company that I work for has migrated their local exchange to a hosted Office 365 solution. We are in the process of building out several externally(to our local network) hosted websites and would like to use LDAP authentication to build upon our existing, hosted user base. Can anyone explain or point to some documentation of a way to use PHP and LDAP to connect to a remotely hosted AD (in this case Office 365) and authenticate users to it? Thank you for your time and effort. 回答1: This is

Using PHP and LDAP to connect to Microsoft Office 365

我是研究僧i 提交于 2019-12-21 19:26:09
问题 The company that I work for has migrated their local exchange to a hosted Office 365 solution. We are in the process of building out several externally(to our local network) hosted websites and would like to use LDAP authentication to build upon our existing, hosted user base. Can anyone explain or point to some documentation of a way to use PHP and LDAP to connect to a remotely hosted AD (in this case Office 365) and authenticate users to it? Thank you for your time and effort. 回答1: This is

How to get groupname when I have the groupid

不羁的心 提交于 2019-12-21 09:06:21
问题 I have the parameters (especially the userid and the groupid) of a file read with the stat command and I work in a network where the users and groups are specified on an ldap server. I've got the username out of the result of the command getent passwd userid . Now my idea was to get the groupname with getent group groupid , but this doesn't work. Can anyone tell me where I have my mistake or how I get the groupname? Thanks! 回答1: Leaving aside the possibility that you're supplying a wrong

Authenticate on LDAP with current user in JNDI/Java

只谈情不闲聊 提交于 2019-12-21 06:57:38
问题 I thought I'd find more about this topic but I didn't. I have to write a java application that checks which ou a specific user is part of. But to authenticate with the server I can't ask for username and password and also can't store it in the source (or some other file). Is there a way with JNDI and Java to authenticate with the user who is currently logged in? 回答1: All you can do is check if there is some user with the same username than the user that is currently logged in your Java

How to auth windows AD users by node.js?

戏子无情 提交于 2019-12-21 06:35:08
问题 I need to auth windows AD users recently. The scenario is below Web pages runs at Server A ( Vue + vue-router ) Api interface runs at Server B ( node + express ) User input AD username & pwd on Web pages (Server A) pass the username & pwd to the api interface on Server B to auth Server B auth username & pwd via LDAP(windwos AD) api on Server B returns the feedback to Web pages (Server A) So, is there any solution could be implemented on Server B to auth username & pwd via LDAP? Great thx! 回答1

Adding LDAP entries using JNDI

五迷三道 提交于 2019-12-21 05:18:10
问题 I am trying to add an entry to an LDAP server using JNDI. I could successfully read the entries from the LDAP server. But when I try to add a new entry I am getting the errors. I checked various ways but I failed. private String getUserAttribs (String searchAttribValue) throws NamingException{ SearchControls ctls = new SearchControls(); ctls.setSearchScope(SearchControls.OBJECT_SCOPE); Attributes matchAttrs = new BasicAttributes(true); matchAttrs.put(new BasicAttribute("uid",

How to check if a user exists on LDAP

五迷三道 提交于 2019-12-21 05:04:18
问题 I need to verify users in the company using only their username - not their password. So I need a method like this public bool UserExists(string username) { ... } I am aware of the System.DirectoryServices namespace but don't know where to start. Any ideas? There are 80,000+ records so try to bear that in mind. Thank you. Edit: I have done it - my code is: private bool UserExists(string userName, string domain) { try { DirectoryEntry.Exists("WinNT://" + domain + ".[hidden].com/" + userName);

Use LDAP for SVN user authentication

点点圈 提交于 2019-12-21 05:01:19
问题 I have an SVN server, and I'd like to use our LDAP server for user authentication. Right now I'm specifying usernames and passwords per repository, which is working OK, but more people are deciding to use this server. And I really shouldn't have access to their passwords. I'd like to use LDAP to authenticate users, and I want to grant access rights to a whole domain rather than specify users individually. Some (gruesome) details: SVN is running on a windows XP machine. :-( I have both

How to check if a Active Directory server is up and running using .Net?

不羁岁月 提交于 2019-12-21 04:51:47
问题 Before trying to query the AD server I would like to check if it is alive and kicking. Looks like a trivial thing, but I haven´t found anything to elucidate this. How can I do that? 回答1: I just try to get the current domain context associated with the running user: try { var domain = Domain.GetCurrentDomain(); /* Whatever i need from the domain */ } catch(ActiveDirectoryOperationException ex) { MessageBox.Show("Cannot contact AD Server"); } If you want to connect to another domain you can try

Can AuthnProviderAlias ldap work with Apache2.4.x?

限于喜欢 提交于 2019-12-21 03:49:31
问题 This works perfectly in Apache2.2, but not in 2.4 (and I need to use 2.4 now): <AuthnProviderAlias ldap myldap> AuthLDAPBindDN cn=Manager,dc=example,dc=com AuthLDAPBindPassword xxxx AuthLDAPURL ldap://localhost:9011/dc=example,dc=com?uid?sub?(objectClass=*) </AuthnProviderAlias> Listen 48443 <VirtualHost myserver:48443> <Directory /path/to/a/folder> Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch AllowOverride All order allow,deny Allow from all AuthBasicProvider myldap mySecondLdap