Apache LDAP Authentication - Login Automatically

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache LDAP Authentication - Login Automatically

Postby Wake3D » 18. October 2023 20:54

Hi

I have LDAP authentication and I'm trying to make it so that when I open the browser and access the URL, the logon is automatic using the Windows credentials
However, it always asks for username and password when accessing the URL
Can you help me with some guidance on the correct method?

Thanks in advance

Location "/ideas">
# STEP 1 : authenticate users on AD
AuthBasicProvider ldap
AuthType Basic
AuthLDAPRemoteUserAttribute sAMAccountName
AuthName "Active Directory Authentication"
#AuthzLDAPAuthoritative off
AuthLDAPURL "ldap://ipaddress:389/DC=x,DC=x,DC=x?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN " CN=SSO User,CN=Users,DC=x,DC=x,DC=x"
AuthLDAPBindPassword "password!"
Require valid-user

LDAPReferrals off

# STEP 2 : Pass the user’s ID to IDEAS in the IV-User variable
RequestHeader add IV-User "%{AUTHENTICATE_sAMAccountName}e"
RequestHeader add realm "x"
</Location>



################################################################################

<VirtualHost *:443>
SSLEngine on
ServerName hostname:443
SSLCertificateFile "C:/xampp/apache/conf/ssl/server.crt"
SSLCertificateKeyFile "C:/xampp/apache/conf/ssl/server.key
DocumentRoot "C:/xampp/htdocs"
# CustomLog C:/xampp/apache/logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
CustomLog "logs/ssl_request.log" common
<Directory "C:/xampp/htdocs">
Options Indexes Includes FollowSymLinks
AllowOverride AuthConfig Limit FileInfo
Require all granted
</Directory>

SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLProxyEngine on

#################################################################################

ProxyPreserveHost on
ProxyRequests on
ProxyPass / https://ipaddress:9343/
ProxyPassReverse / https://ipaddress:9343/
ProxyPassReverseCookiePath / /
RewriteEngine on
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) https://ipaddress:9343/$1 [P,L]
</virtualhost>
Wake3D
 
Posts: 2
Joined: 18. October 2023 20:48
XAMPP version: 3.3.0
Operating System: Windows

Re: Apache LDAP Authentication - Login Automatically

Postby Nobbie » 19. October 2023 12:48

Thats impossible. The Apache Server Configuration does not know anything about the Clients PC. Already that concept does not work at all, a remote client (like me here in this forum) is running in a completely different environment than the Apache Server. My Windows login credentials are totally unknown in the Apache Friends Support Forum.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Apache LDAP Authentication - Login Automatically

Postby Wake3D » 19. October 2023 13:42

But in my case the type of authentication screen requested is "windows basic", it is nothing like the forum login screen

Image
Wake3D
 
Posts: 2
Joined: 18. October 2023 20:48
XAMPP version: 3.3.0
Operating System: Windows

Re: Apache LDAP Authentication - Login Automatically

Postby Nobbie » 19. October 2023 18:11

OMG.

Yes of course: that was an example to show you WHY it is impossible.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 65 guests