[Samba] ntfs user mappings?
Rowland Penny
rpenny at samba.org
Mon Nov 6 10:06:10 UTC 2017
On Sun, 5 Nov 2017 16:14:33 -0700
Jeff Sadowski <jeff.sadowski at gmail.com> wrote:
> Not bad but I wanted an ldap version because I was having issues
> running ldbsearch as a normal user.
>
You are probably using the wrong syntax ;-)
you can use use a username and password with:
ldbsearch -H ldap://member1.samdom.example.com -U rowland%xxxxxxxxxx -b
DC=samdom,DC=example,DC=com -s sub
'(&(objectClass=user)(!(objectClass=computer))(sAMAccountName=*))'
sAMAccountName
Where 'xxxxxxxxxx' is the users password.
or with kerberos (provided the user has a valid ticket):
ldbsearch -H ldap://member1.samdom.example.com -k yes
--krb5-ccache=krb5cc_xxxxx -b DC=samdom,DC=example,DC=com -s sub
'(&(objectClass=user)(!(objectClass=computer))(sAMAccountName=*))'
sAMAccountName
Where 'krb5cc_xxxxx' is the users ticket in /tmp/
Rowland
More information about the samba
mailing list