#939717 Failure to install tjener if the first username is not full ASCII

#939717#5
Date:
2019-09-08 03:27:51 UTC
From:
To:
Hi,

Providing non-ASCII characters in the first user name during d-i makes
the installation fail to set up correctly ldap and thus breaks all
usability of tjener (krb5, isc-dhcp and samba fail to start after the
installation, GOsa is not set up, one can’t login with the initial
credentials…).

Looking at /var/log/installer/syslog, it looks like the
ldap-debian-edu-install fails:

(the not failing log split more than two hundred lines, the first ones
starting with slapadd:).

Reproducing is easy, just using e.g., “tété” as user full name (the
preseed-like passwd/user-fullname string) makes a broken system.

Regards

David

#939717#10
Date:
2019-09-08 08:36:10 UTC
From:
To:
Non-ASCII characters should be dropped instead of being properly
transliterated as initially designed if they are not recognised. This
should allow one to workaround installation issues as #939717.
---
 ldap-tools/ldap-debian-edu-install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ldap-tools/ldap-debian-edu-install b/ldap-tools/ldap-debian-edu-install
index 1b393a8f..df723d5d 100755
--- a/ldap-tools/ldap-debian-edu-install
+++ b/ldap-tools/ldap-debian-edu-install
@@ -73,7 +73,7 @@ if db_get debian-edu-config/first-user-fullname && [ "$RET" ] ; then
 	FIRSTUSERGIVENNAME="$FIRSTUSERLASTNAME"
     fi
     # GECOS in LDAP must be ASCII (IA5String), convert to this
-    FIRSTUSERGECOS="$(echo $RET | iconv -t ASCII//TRANSLIT)"
+    FIRSTUSERGECOS="$(echo $RET | iconv -ct ASCII//TRANSLIT)"
 else
     echo "error: no value in first-user-fullname, passing debconf values fail?" 1>&2
     FIRSTUSERGECOS="LDAP initial admin user"

#939717#15
Date:
2019-09-08 17:39:20 UTC
From:
To:
Hi David,

Thanks for reporting the issue and providing a patch.

I've checked the patch via running 'cf-agent -I -Dinstallation,di' on
the main server. As far as I can tell, another change is needed to get a
valid workaround:

+    FIRSTUSERGECOS="$(echo "$RET" | iconv -ct ASCII//TRANSLIT)"

Please note that running 'ldap-debian-edu-install' via cf-agent (in
finish_install) causes the problem. It doesn't show up if the tool is
used directly; i.e running
'/usr/share/debian-edu-config/tools/edu-ldap-from-scratch'

I guess for a proper fix it would be needed to figure out how cf-agent
is involved here.

Wolfgang

#939717#20
Date:
2019-09-09 00:03:58 UTC
From:
To:
Hi Wolfgang,

Le 08/09/2019 à 07:39, Wolfgang Schweer a écrit :

Thank you for checking and pointing a way to reproduce (I didn’t tag
that bug as patch, as I wasn’t yet able to reproduce it outside d-i,
just trying to find an easy workaround as a first debugging step).

Thank you for narrowing down!

nods (trying to find if it behaves as if the sting was seen as a
non-UTF8 string in an UTF-8 environment maybe).

Regards

David

#939717#23
Date:
2026-08-19 20:39:55 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/f66d732a7699f5e636950bc599ad3c8e2b4eee99
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#28
Date:
2026-08-19 20:45:51 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/ad6e94a7996b55a8aa05d73c07a67620069a8529
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#33
Date:
2026-08-19 20:50:11 UTC
From:
To:
Hi David, hi all,

long time not addressed, but maybe today...

I assume the problem is that the ldap-debian-edu-install script is run
with LANG=C instead of LANG=C.UTF-8. Or maybe it is today (Debian
13+), but was not so in Debian 10.

Let's see, one of my coworks will run some tests. See:
https://salsa.debian.org/debian-edu/debian-edu-config/-/merge_requests/52

Mike

#939717#36
Date:
2026-08-20 17:07:40 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#39
Date:
2026-08-21 08:03:05 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#42
Date:
2026-08-21 08:52:09 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#45
Date:
2026-08-21 14:49:41 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#48
Date:
2026-08-21 14:50:25 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#51
Date:
2026-08-21 18:40:06 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#54
Date:
2026-08-21 18:43:45 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717

#939717#57
Date:
2026-08-21 19:12:16 UTC
From:
To:
Hello,

Bug #939717 in debian-edu-config reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/63575146e23880e0745326baf87a3fad7c54d200
------------------------------------------------------------------------
ldap-tools/ldap-debian-edu-install: Make sure interactions with debconf are UTF-8 based.

This resolves GECOS field transliteration after having retrieved
debian-edu-config/first-user-fullname from the debconf db.

(Closes: #939717).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/939717