Cannot Import LDAP Users

Started by gngui, February 14, 2025, 08:29:12 AM

Previous topic - Next topic
Versions
OPNsense 25.1.1-amd64
FreeBSD 14.2-RELEASE-p1
OpenSSL 3.0.16

Setup
I have FreeIPA setup correctly as the LDAP server and I have imported users OK in the past.

Issue
Under System ‣ Access ‣ Users the cloud icon used to import LDAP users is not there. It used to be there but I have no idea at what version it disappeared.




Use the CN of the LDP user as a newly created user name and it's done. The importer didn't do any magic whatsoever.


Cheers,
Franco

Hi,
Two issues to your suggestion,
1. Using the full CN of the user brings an error "A username must contain alphanumeric characters or a valid email address". If I use the username alone the system creates a local user.
2. The add user form requires a mandatory password which negates the need for LDAP.

Kindly assist.
Gerald

Hi Gerald,

1. What is a "full CN"? If you mean DN yes that doesn't work, but that's why I said CN. If it's an email that fails validation how about showing us which email format it doesn't accept?

2. You can set "random password" checkmark for new user.  The local user doesn't need one, correct.

3. We will be adding a CSV import... https://github.com/opnsense/core/issues/8340 ... but you still need a proper CN :)


Cheers,
Franco