[Samba] Pdbedit show only user "root"

Gaiseric Vandal gaiseric.vandal at gmail.com
Tue Jun 15 21:17:37 MDT 2010

Have you tried manually creating the unix account (if necessary) and then
the samba account (with "smbpasswd -a" command.)  

Or are you just creating the samba account with "smbpasswd -a" and hoping
that the "add user script" creates the unix account.    

-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org]
On Behalf Of Bruno Steven
Sent: Tuesday, June 15, 2010 8:51 PM
To: samba at lists.samba.org
Subject: [Samba] Pdbedit show only user "root"


When i put the command pdbedit plus any user name show the message
user not found. Only user root is exibited. Why the others not show?

the service smbd winb nmbd slapd is running without problem.


*root at AbramisSRV smbldap-tools]# pdbedit -Lv teste*
Username not found!

*[root at AbramisSRV smbldap-tools]# pdbedit -Lv root*
Unix username:        root
NT username:          root
Account Flags:        [U          ]
User SID:             S-1-5-21-1281201103-1048660758-78004217-500
Primary Group SID:    S-1-5-21-1281201103-1048660758-78004217-513
Full Name:            root
Home Directory:
HomeDir Drive:
Logon Script:
Profile Path:
Domain:               REDEADM.COM
Account desc:
Munged dial:
Logon time:           0
Logoff time:          never
Kickoff time:         never
Password last set:    Tue, 15 Jun 2010 13:56:24 BRT
Password can change:  Tue, 15 Jun 2010 13:56:24 BRT
Password must change: never
Last bad password   : 0
Bad password count  : 0
[root at AbramisSRV smbldap-tools]#

My smb.conf

unix charset = LOCALE
workgroup = REDEADM.COM
netbios name = AbramisSRV
interfaces = eth0, lo
bind interfaces only = Yes
passdb backend = ldapsam:ldap://
enable privileges = Yes
username map = /etc/samba/smbusers
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 139
name resolve order = wins bcast hosts
time server = Yes
#printcap name = CUPS
show add printer wizard = No
add user script = /opt/IDEALX/sbin/smbldap-useradd -m "%u"
delete user script = /opt/IDEALX/sbin//smbldap-userdel "%u"
add group script = /opt/IDEALX/sbin/smbldap-groupadd -p "%g"
delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"
add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /opt/IDEALX/sbin/smbldap-groupmod -x "%u"
set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g "%g" "%u"
add machine script = /opt/IDEALX/sbin/smbldap-useradd -w "%u"

#logon script = scripts\logon.bat
#logon path = \\%L\profiles\%U
#logon drive = X:
logon path =
logon home =
domain logons = Yes
preferred master = Yes
wins support = Yes
ldap suffix = dc=redeadm,dc=com
ldap machine suffix = ou=Computers
#ldap user suffix = ou=Users
ldap user suffix = ou=Internet
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap admin dn = cn=adm,dc=redeadm,dc=com
idmap backend = ldap:ldap://
#caso de errado descomente a duas proximas linhas
idmap uid = 10000-20000
idmap gid = 10000-20000
map acl inherit = Yes
#printing = cups
#printer admin = root, chrisr

*Thank very much*

Bruno Steven - Administrador de sistemas.
LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4

MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100

P Antes de imprimir pense em sua responsabilidade e comprometimento com o
Meio Ambiente. Before printing this message, think about your ecologic
responsability and environment commitment.
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list