Web lists-archives.com

Re: [Samba] ntfs user mappings?




On Sun, 5 Nov 2017 16:14:33 -0700
Jeff Sadowski <jeff.sadowski@xxxxxxxxx> 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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba