[Samba] Creating users with non-ascii chars fails
Roel van Meer
roel at 1afa.com
Thu Sep 4 01:34:06 MDT 2014
Marc Muehlfeld writes:
> > root at test-samba4:~# samba-tool user create foa --given-name='foaä'
> > New Password:
> > Retype Password:
> > ldb_handler_fold: unable to casefold string [foaä]
> > ldb_handler_fold: unable to casefold string [foaä]
> > ldb_handler_fold: unable to casefold string [foaä]
> > ldb_handler_fold: unable to casefold string [foaä]
> > Conversion error: Illegal multibyte sequence(ä)
> > ERROR(ldb): Failed to add user 'foa': - objectclass_attrs: attribute
> > 'displayName' on entry 'CN=foaä,CN=Users,DC=s4,DC=local' contains at
> > least one invalid value!
>
> 1.) It's a bad idea to create users with special characters. You will
> get trouble with other connected applications somewhen for sure. :-)
Yes, I know. Unfortunately, it is possible with our current samba3/OpenLDAP
setup, so it should preferrably be possible with samba 4 as well.
> 2.) It's not a bug (done on RHEL7):
> # samba-tool user create foa --given-name='foaä'
> New Password:
> Retype Password:
> User 'foa' created successfully
That's good to know, thanks!
> 3.) Can you check
> # smbd -b | grep icon -i
> HAVE_ICONV_H
> HAVE_ICONV
> HAVE_ICONV_OPEN
> HAVE_NATIVE_ICONV
> This is the output on my RHEL7
It's the same:
root at test-samba4:~# smbd -b | grep icon -i
HAVE_ICONV_H
HAVE_ICONV
HAVE_ICONV_OPEN
HAVE_NATIVE_ICONV
Thanks for your answer!
Roel
More information about the samba
mailing list