[Samba] Creating users with non-ascii chars fails
Marc Muehlfeld
mmuehlfeld at samba.org
Wed Sep 3 11:12:49 MDT 2014
Hello Roel,
Am 02.09.2014 14:52, schrieb Roel van Meer:
> I'm trying to create a user with non-ascii characters in the name, but this
> fails:
>
> 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. :-)
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
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
Regards,
Marc
More information about the samba
mailing list