Hello Penny Am 18.04.2017 um 18:27 schrieb Rowland Penny via samba:> On Tue, 18 Apr 2017 17:47:55 +0200 > > Are you mixing up the users 'cn' and 'samaccountname' ? > > The users 'cn' could be 'max mustermann', but the users > 'samaccountname' could well be 'max', in fact it can be anything, upto > 20 characters long and without spaces.sorry but the sAMAccountName has the white spaces too: $ ldapsearch -h server -x -LLL -b "dc=mydom,dc=de" -D "cn=Proxy Benutzer,cn=Users,dc=mydom,dc=de" -W "cn=max mustermann" sAMAccountName | grep sAMAccountName Enter LDAP Password: sAMAccountName: Max Mustermann I know it is ugly, but it is not born on my idea. But MS also dont have any problems with it. Is it not really supported in samba? Regards Thomas
On Wed, 19 Apr 2017 16:35:18 +0200 Thomas Creutz via samba <samba at lists.samba.org> wrote: Hi Creutz,> > I know it is ugly, but it is not born on my idea. But MS also dont > have any problems with it. Is it not really supported in samba? > > Regards > Thomas >It is actually a Unix thing and doesn't really have anything to do with Samba. A quick google turned this up: http://www.linuxquestions.org/questions/linux-networking-3/squid-ldap-auth-there-is-a-space-in-user-name-4175534074/ Rowland
Am 19.04.2017 um 17:11 schrieb Rowland Penny:>> I know it is ugly, but it is not born on my idea. But MS also dont >> have any problems with it. Is it not really supported in samba? > It is actually a Unix thing and doesn't really have anything to do with > Samba.I can't confirm fully - linux can handle spaces as well as windows can (take as example a look on file systems from win and linux). Its more program specific like wbinfo. Thats why I want to come back to the wbinfo command: how can I query with it for username with the space. Maybe, when I get the wbinfo command working - it will also work in squid...> A quick google turned this up: > > http://www.linuxquestions.org/questions/linux-networking-3/squid-ldap-auth-there-is-a-space-in-user-name-4175534074/ >thanks for the hint - but the ldap querys are really urgly, because you have to match the memberof with the ou at the same time. I had it running, but want to switch to winbind, because it is 1. little bit more secure (ntlm/kerberos) and more easy (to complicated ldap querys). Thomas
Am 19.04.2017 um 17:11 schrieb Rowland Penny:>> I know it is ugly, but it is not born on my idea. But MS also dont >> have any problems with it. Is it not really supported in samba? > It is actually a Unix thing and doesn't really have anything to do with > Samba.I can't confirm fully - linux can handle spaces as well as windows can (take as example a look on file systems from win and linux). Its more program specific like wbinfo. Thats why I want to come back to the wbinfo command: how can I query with it for username with the space. Maybe, when I get the wbinfo command working - it will also work in squid...> A quick google turned this up: > > http://www.linuxquestions.org/questions/linux-networking-3/squid-ldap-auth-there-is-a-space-in-user-name-4175534074/ >thanks for the hint - but the ldap querys are really urgly, because you have to match the memberof with the ou at the same time. I had it running, but want to switch to winbind, because it is 1. little bit more secure (ntlm/kerberos) and more easy (to complicated ldap querys). Thomas