[Samba] [AD/PDC] Logins with Spaces do not work

Jeremy Allison jra at samba.org
Fri May 29 11:17:45 MDT 2015

On Thu, May 28, 2015 at 04:46:49PM +0200, Andreas Happe wrote:
> Hi,
> I've migrated a Windows Server 2003 Active Directory to Samba and am
> running both servers in parallel. Samba is run under Debian Linux, Version
> is 4.1.17-Debian.
> My Problem is, that Client Computers cannot log in when their Logins
> contain Spaces. We were able to reproduce this by adding/removing spaces
> from a username and making login fail/work with this. Umlauts are not a
> problem.
> Kerberos works with spaces (tested with kinit).
> Any Idea how to solve this?

It's a really bad idea to have logins with spaces. It can
cause all sorts of security issues in all sorts of subtle
ways. Replace the spaces with '_' (underscoer).

More information about the samba mailing list