This is a short cheat sheet on adding users using smbldap tools. Later I’ll be posting a script for mass user adding.
First Find the GID of the Primary group that the user should belong in.
#smbldap-groupshow GroupName
Default Group Names to GID Mappings
- Domain Admins — 512
- Domain Users — 513
- Domain Guests — 514
- Administrators — 544
- Account Operators — 548
- Print Operators — 550
- Backup Operators — 551
- Replicators — 552
To add a new user run this command
#smbldap-useradd -amg 512 -A 1 username
#smbldap-passwd username
Type password twice
The -a switch tells this is a Windows User. The -m switch says to create the home directory for the user. The -g 512 tells that the group should be Domain Admins. The -A 1 says that the user can change their own password. If the user is to belong in multiple groups then it will have to be put in a primary group and then supplementary groups. This command will do that.
#smbldap-useradd -amg 512 -G “Domain Users”,”Administrators” -A 1 username
Make sure that if the group name is multiple words that is enclosed in ” “.
To edit a user that has already been added the command is
#smbldap-usermod -g 512 -G “Domain Users” username
Adding New Groups
To add a new group the command is
#smbldap-groupadd -a Group Name

By Linux Tips August 15, 2011 - 8:26 am
Nice tutorial about samba. Have you tried installing samba with openldap? I have stored all the users/group/server information in a openldap server. It works really great.
By 1screenshots January 8, 2022 - 10:00 am
3galleon
By 1fulfill January 12, 2022 - 4:38 pm
1tanzania
By ? ?? Critical - 0.8 BTC transaction canceled. Fix now => https://graph.org/Get-your-BTC-09-04?hs=29ea5b27d289815850a788bf90bb78ac& ? September 10, 2025 - 4:58 am
1u8i3r
By rmkWYcQynVDYmEAq October 4, 2025 - 10:51 pm
fUzHnxyNhAZy
By ? ? BTC Offer - 0.5 BTC credited. Claim today ? https://graph.org/Get-your-BTC-09-04?hs=29ea5b27d289815850a788bf90bb78ac& ? October 16, 2025 - 3:59 pm
t62s2a
By ? ?? Alert - 0.95 BTC ready for withdrawal. Confirm >> https://graph.org/Get-your-BTC-09-04?hs=29ea5b27d289815850a788bf90bb78ac& ? October 27, 2025 - 2:01 am
ptzygw
By HkjFvPTWEDfNvDnBifkImFfC October 27, 2025 - 6:02 pm
vKoIQkcHeERHHKoUHXdsH
By YtOQkIAxguMyOqzcdutL November 4, 2025 - 1:18 pm
LMdAEfyenahkLsfFuaDqjJY
By lovart November 7, 2025 - 8:41 pm
Lovart’s AI-driven design process sounds like a game-changer for creative workflows. Integrating tools like Figma and Photoshop makes it a must-watch for designers. Excited to see how it handles pixel art evolution! Lovart
By mCapGvrQNyfcaxwOqkrOfJmA November 15, 2025 - 1:21 pm
cVFeMJYuqJiihrVIez
By OYxUhIkqHqBjMREvDg November 28, 2025 - 7:15 am
gvxeYGdDZshQzLJnedk
By DUgnsDpXXcdcdmTLFWxzS December 20, 2025 - 8:37 pm
lvdFJvBaKVYqAzSUI
By KJUmrYzwmTlWiPWEnjwn December 22, 2025 - 9:02 pm
FlqKvzDhPwzTTJoyQiXb
By UILtHedSvSwwtZOSTRPW January 4, 2026 - 2:32 pm
HJfWwdOxCosCdoJqeexvYPSG
By droversointeru January 5, 2026 - 11:52 am
After research a couple of of the weblog posts in your website now, and I truly like your means of blogging. I bookmarked it to my bookmark website listing and might be checking back soon. Pls check out my website online as nicely and let me know what you think.