SMB external LDAP POSIX resolution
Resolve SMB POSIX user and group attributes from an external LDAP directory.
Overview
Configure WEKA SMB-W to resolve POSIX user and group attributes (uidNumber, gidNumber) from an external LDAP directory instead of from the joined Active Directory. This supports environments where an identity bridge such as Delinea Server Suite (formerly Centrify), or a standalone OpenLDAP-compatible directory, holds the POSIX attributes that AD does not.
By default, SMB-W maps SMB users to POSIX identities through the joined Active Directory, using the ID mapping backend selected with --idmap-backend (rid, rfc2307, and so on). When POSIX attributes are not present in AD, this mapping cannot succeed and SMB access fails.
Switching the cluster to NSS POSIX-resolution mode changes where those attributes come from:
The SMB-W server is configured with
userdb_idmap = nss, so it delegates every POSIX lookup to the operating system's Name Service Switch instead of querying AD.Inside the SMB-W container, NSS is wired to SSSD (
passwd: compat sss,group: compat sss) throughlibnss_sss.SSSD queries the configured external LDAP directories and returns the UID/GID to the SMB-W server.
Authentication and authorization are unchanged. Users still authenticate against Active Directory, and only POSIX attribute resolution moves to LDAP.
POSIX resolution modes
Select a mode that determines where SMB-W resolves POSIX UID and GID attributes.
ad: Default. Resolves POSIX UID and GID attributes through the joined Active Directory. Uses the ID mapping backend set with--idmap-backend.nss: Resolves POSIX UID and GID attributes through NSS and SSSD against configured external LDAP domains.--idmap-backenddoes not apply and cannot be combined with this mode.
Configuration storage and application
LDAP domain definitions are held in the WEKA cluster configuration. Each SMB-W container generates sssd.conf from that configuration into the SMB-W config filesystem (.smbw/sssd/sssd.conf), writes it into the container, and restarts SSSD to apply the change. As a result:
The configuration survives container restarts, server reboots, and WEKA upgrades.
Bind passwords are never stored in cleartext in
sssd.conf. WEKA keeps them in a separate per-domain credential file and injects them in obfuscated form when SSSD starts.
SSSD runs only when it is needed. If no LDAP domain is configured, no sssd.conf is generated, the SSSD starter exits without starting the daemon, and clusters in ad mode are unaffected.
When NSS mode is active and an sssd.conf exists, SMB-W startup waits up to 60 seconds for the SSSD NSS socket before serving, so the first lookups do not race an unready daemon. The wait is skipped in ad mode.
Domain names and name qualification
In NSS mode, the SMB-W server passes fully qualified names (DOMAIN\user) to NSS, and SSSD is configured with use_fully_qualified_names. The SSSD domain label is therefore not arbitrary: it must match the domain name that clients present, which is the AD domain name. Any other label prevents SSSD from routing the lookup to the right LDAP source.
Domain labels may contain letters, digits, ., _, and -. They must be unique, and uniqueness is enforced case-insensitively.
Users without POSIX attributes
Users that have no uidNumber/gidNumber in the configured LDAP directories are not assigned an identity automatically. Their lookups fail and access is denied. NSS mode has no fallback to an auto-generated UID range.
Configure external LDAP POSIX resolution
Define one or more LDAP domains, switch the cluster to NSS mode, and verify that lookups resolve.
Before you begin
Verify that the cluster is an SMB-W cluster. This feature does not apply to the legacy SMB cluster type.
Obtain cluster admin credentials.
Collect the LDAP URI, search base, bind DN, and bind password. For encrypted connections, also obtain the CA certificate PEM file of the issuing CA.
Confirm that the LDAP directory exposes POSIX attributes under the search base you intend to use.
Add an LDAP domain
<domain>
SSSD domain label. Must be unique and must match the domain name clients present. Letters, digits, ., _, - only.
--ldap-uri
LDAP server URI, for example ldap://host:389 or ldaps://host:636. Mandatory. One URI per domain.
--ldap-search-base
LDAP search base for POSIX lookups, for example DC=example,DC=com. Mandatory.
--ldap-bind-dn
Service account DN used for an authenticated bind. Omit for an anonymous bind.
--ldap-bind-password
Password for the bind DN. If omitted, the CLI prompts for it without echoing. Set both the bind DN and the password (authenticated bind), or leave both empty (anonymous bind).
--ldap-schema
LDAP schema used for POSIX attribute resolution, for example rfc2307 or rfc2307bis. Default: rfc2307bis.
--case-sensitive
Make POSIX name lookups case-sensitive. Default: omitted, which means case-insensitive. Keep the default when AD and the LDAP directory differ in username case.
--start-tls
Secure the LDAP connection with StartTLS (sets SSSD ldap_id_use_start_tls).
--ca-cert
Path to the CA certificate PEM file used to verify the LDAP server certificate. When supplied, SSSD is configured with ldap_tls_reqcert = demand. Maximum size 16 KiB.
--validate-before-commit
Probe the LDAP server (bind plus a POSIX attribute lookup) before writing the configuration. The domain is not added if the probe fails.
Switch the cluster to NSS mode
Adding a domain does not by itself change how POSIX attributes are resolved. Switch the cluster mode once at least one domain is configured:
The mode switch is rejected if no LDAP domain is configured, and --posix-resolution-mode nss cannot be combined with --idmap-backend.
Create a new cluster directly in NSS mode with a single LDAP domain:
Cluster creation accepts one LDAP domain and does not accept TLS parameters. Add StartTLS, a CA certificate, or further domains afterwards with weka smb ldap-domain add and weka smb ldap-domain update.
Verify the configuration
Check the cluster-level SSSD health.
The output includes
SSSD Health, andSSSD Last Errorwhen health isfailed. For the meaning of each value, see Monitor SSSD health.Test an individual domain end to end.
The command performs a bind and a
uidNumberlookup against the stored parameters and changes nothing:
View configured LDAP domains
The table reports the domain label, LDAP URI, search base, bind DN, whether an authenticated bind is configured (Auth Bind), and a live per-domain connectivity Status.
Update an LDAP domain
Only the parameters you supply are changed. Everything else is left as is.
Passing an empty --ldap-schema resets the domain to the rfc2307bis default. With --validate-before-commit, WEKA probes the merged configuration and applies the update only if the probe succeeds.
Rotate the bind password
If <new-password> is omitted, the CLI prompts for it without echoing it. The stored credential is replaced, the per-domain obfuscated credential file is regenerated, and SSSD is reloaded. The old password is not written to any log.
Rotate or replace a CA certificate
The new PEM replaces the stored certificate for that domain and SSSD is reloaded.
Remove an LDAP domain
This stops POSIX resolution from that domain. When the last domain is removed, the generated sssd.conf and all per-domain credential and certificate files are deleted, and SSSD stops.
Return to AD-based resolution
The cluster bounces, the SMB-W server returns to AD-based ID mapping, and any configured LDAP domains are retained but no longer consulted.
Secure the LDAP connection
Two independent controls apply. Use both in regulated environments:
--start-tlsupgrades a plainldap://connection on port 389 to TLS.--ca-certsupplies the CA that must have issued the LDAP server certificate. When it is set, SSSD requires a verifiable server certificate (ldap_tls_reqcert = demand).
Monitor and troubleshoot
Monitor SSSD health
weka smb cluster reports one of the following values:
SSSD Health
Meaning
not-configured
The cluster is not in nss mode, or no LDAP domain is configured. SSSD is intentionally not running.
running
SSSD is running and its NSS responder socket is ready on all SMB-W servers.
failed
SSSD is not running, or its NSS socket is not ready, on at least one SMB-W server. SSSD Last Error carries the most recent error text.
Log files
Inside the SMB-W container, under the host-backed /data/log/ directory:
sssd_starter.log
Starter activity: config filesystem wait, start/skip/restart decisions, credential-obfuscation errors.
sssd.log
SSSD daemon output.
sssd_redacted.conf
Snapshot of the active sssd.conf with bind tokens stripped, for diagnostics.
The generated sssd.conf is marked #DO NOT EDIT (managed by Weka) and is overwritten whenever the cluster configuration changes. Edit the configuration through the CLI only.
Troubleshoot common failures
System specifications
Maximum LDAP domains per SMB-W cluster
64
LDAP domains accepted at cluster creation
1
LDAP URIs per domain
1. There is no multi-server failover within a single domain. Define separate domains for separate directories.
Maximum CA certificate size
16 KiB
Maximum LDAP URI length
256 characters
Maximum search base length
128 characters
Maximum bind DN length
256 characters
Maximum domain label length
64 characters
SMB-W startup wait for the SSSD NSS socket (NSS mode only)
60 seconds, non-fatal
Bind authentication
Anonymous and simple authenticated binds only. Kerberos/GSSAPI bind is not supported.
Raw sssd.conf upload
Not supported. The generated configuration cannot be replaced or extended with arbitrary SSSD options.
Configuration interface
CLI only. The feature is not exposed in the WEKA GUI.
Automatic UID assignment
Not supported. Users without POSIX attributes in LDAP are denied access.
SSSD cache tuning
Not exposed. SSSD's built-in caching applies with WEKA-selected timeouts.
NFS LDAP configuration
Independent. NFS-W has its own weka nfs ldap commands with a different configuration model.
Last updated