Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. 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.

  2. Inside the SMB-W container, NSS is wired to SSSD (passwd: compat sss, group: compat sss) through libnss_sss.

  3. 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-backend does 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

Parameter
Description

<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.

Passwords are passed through to LDAP verbatim, including shell metacharacters. To avoid quoting problems with complex passwords, omit --ldap-bind-password and enter the password at the prompt.

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

  1. Check the cluster-level SSSD health.

    The output includes SSSD Health, and SSSD Last Error when health is failed. For the meaning of each value, see Monitor SSSD health.

  2. Test an individual domain end to end.

    The command performs a bind and a uidNumber lookup 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.

Bind passwords are never returned by the CLI or the API, in any output format. There is no option to reveal a stored password.

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-tls upgrades a plain ldap:// connection on port 389 to TLS.

  • --ca-cert supplies 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:

File
Contents

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

Lookups return nobody/nogroup for LDAP users

Cause: The cluster is in ad mode, no LDAP domain is configured, or the SSSD domain label does not match the domain name clients present.

Resolution:

  1. Confirm the POSIX resolution mode and the SSSD health.

  2. List the configured domains and compare each label with the AD domain name clients send.

  3. Correct the mismatch. Switch the cluster to nss mode, add the missing domain, or remove the mislabeled domain and add it again with the correct label. A label cannot be renamed in place.

weka smb ldap-domain test reports bind: FAILED

Cause: The bind DN or password is wrong, or the TLS handshake fails because the server certificate of a StartTLS or ldaps:// connection cannot be verified with the supplied CA.

Resolution:

  1. Verify the bind DN.

  2. Set the password again if it may be stale.

    Omit --new-password so the CLI prompts for it, which avoids shell quoting problems with complex passwords.

  3. Supply the correct CA certificate when the connection uses StartTLS or ldaps://.

weka smb ldap-domain test reports posix attributes (uidNumber): NOT found

Cause: The bind succeeds, but the search base or the schema is wrong, or the user has no POSIX attributes in the directory.

Resolution:

  1. Confirm that the user carries uidNumber and gidNumber in the directory. Users without POSIX attributes are denied access, and NSS mode has no automatic UID assignment.

  2. Widen or correct the search base so it covers the container that holds the POSIX entries.

  3. Switch the schema if the directory publishes group membership in the other format.

SSSD Health: failed immediately after an SMB-W container restart

Cause: SSSD is still waiting for the SMB-W config filesystem to mount, which takes up to about 3 minutes, or it is restarting to pick up a configuration change.

Resolution:

  1. Wait about 3 minutes and check the health again.

  2. Review sssd_starter.log and sssd.log under /data/log/ in the SMB-W container if the health stays failed.

System specifications

Item
Value

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