Send netdisco-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. Active Directory authentication (Johnnie Adams)
2. Re: Active Directory authentication (Michael Butash)
--- Begin Message ---
Hi, folks,
I'm trying to use Active Directory authentication on a new
installation of NetDisco I'm building. I've put the authentication
information into deployment.yml. Now, when I try to log in with an AD
account, I get Incorrect username or password, please try again. Local
accounts work fine. There are no errors in the logs.
Here's what's in deployment.yml:
ldap:
servers:
- 'ad.example.com'
base_dn: 'dc=ad,dc=example,dc=com'
proxy_user: '[email protected]'
proxy_pass: 'redacted'
user_query: '(&(objectClass=user)(sAMAccountName=%u))'
attributes:
fullname: 'displayName'
username: 'sAMAccountName'
email: 'mail'
autoregister: true
opts:
referrals: 0
debug: 1
I'm puzzled. Your thoughts?
Thanks,
John A
--- End Message ---
--- Begin Message ---
Something to note as a common gotcha, a username needs to exist and created
still inside netdisco FIRST with netdisco role permission set and set to
external auth. It won't simply pass the username entered blindly to AD for
authentication if it doesn't exist first as there is no group authorization
to map users to netdisco role, and will fail if the user is not present
with group set. One might assume like many of us do it would pass the
user/pass along anyways, but I personally have been wrong assume that.
-mb
On Tue, Mar 31, 2026 at 3:14 PM Johnnie Adams <[email protected]> wrote:
> Hi, folks,
>
> I'm trying to use Active Directory authentication on a new
> installation of NetDisco I'm building. I've put the authentication
> information into deployment.yml. Now, when I try to log in with an AD
> account, I get Incorrect username or password, please try again. Local
> accounts work fine. There are no errors in the logs.
>
> Here's what's in deployment.yml:
>
> ldap:
>
> servers:
>
> - 'ad.example.com'
>
> base_dn: 'dc=ad,dc=example,dc=com'
>
> proxy_user: '[email protected]'
>
> proxy_pass: 'redacted'
>
> user_query: '(&(objectClass=user)(sAMAccountName=%u))'
>
> attributes:
>
> fullname: 'displayName'
>
> username: 'sAMAccountName'
>
> email: 'mail'
>
> autoregister: true
>
> opts:
>
> referrals: 0
>
> debug: 1
>
> I'm puzzled. Your thoughts?
>
> Thanks,
>
> John A
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users