Description |
This article describes how to join the FortiNAC to the domain from the CLI when it is not joining correctly from the GUI. Though the GUI shows it as 'Domain Status: Joined', the following errors are shown:
Note: This troubleshooting guide is more oriented to FortiNAC CentOS versions. However, although it also apply for FortiNAC-F NAC-OS 7.2.x or 7.4.x versions, the NAC must be rooted for 7.2.x and 7.4.x versions only. (Please contact support for assistance if root the NAC is needed to make changes in FortiNAC-F versions only). |
Scope | FortiNAC v9.x, v7.2.x, v7.4.x |
Solution |
Step 1: Log into the FortiNAC CLI and enable Winbind debug with the following command: CentOS:
nacdebug -name WinbindPlatformService true
NAC-OS:
execute enter-shell nacdebug -name WinbindPlatformService true
Step 2: Check the SAMBA smb.conf file configuration:
cat /etc/samba/smb.conf
Example output:
[global]
Step 3: Validate the entire configuration and confirm the following:
Step 4: Check the output.master logs from the FortiNAC CLI:
CentOS:
tf -F /bsc/logs/output.master | egrep -i "ad-server-ip-address|winbind-username"
yams.WinbindPlatformService SEVERE :: 2024-10-17 13:35:55:040 :: #629 :: Error joining domain [winbind-instance] (winbind-username)
NAC-OS:
diagnose tail -F output.master | grep "ad-server-ip-address|winbind-username"
yams.WinbindPlatformService SEVERE :: 2024-10-17 13:35:55:040 :: #629 :: Error joining domain [winbind-instance] (winbind-username)
The following sample output shows that the 'smb.conf' file was not assigned the correct group permissions at the write level:
Note: If the permissions are similar to these (-rw-r--r--.), it indicates that it has Read-Only permissions and the commands below must be executed to grant Read/Write permissions:
chgrp nac /etc/samba/smb.con
Now, the correct permissions can be verified with the previous command:
ls -al /etc/samba -rw-r--r--. 1 root root 11327 Mar 7 2023 smb.conf.example
Step 6: Because the 'smb.conf' file was not being updated correctly due to the lack of permissions, after adding the permissions with the previous commands, proceed to modify the Winbind configuration through the FortiNAC GUI and select Ok (no need to change any settings). This will help the smb.conf file to be updated and reflect the correct configuration.
Step 7: Finally, after correcting the permissions problems and viewing the Winbind configuration information from the CLI, proceed to join the FortiNAC to the domain from the CLI:
From the FortiNAC Web interface (GUI), refresh the page and confirm that the FortiNAC is now 'Joined' to the Winbind domain correctly.
Related articles:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.