./auth/ldap/cli/sync_users.php throws a potential coding error for a prohibited username

Re: ./auth/ldap/cli/sync_users.php throws a potential coding error for a prohibited username [HALF SOLVED]

per Visvanath Ratnaweera,
Number of replies: 1
Avatar Particularly helpful Moodlers Avatar Translators
Found the offending user, had a hash (#) in the username!

Thanks to these two posts:
- https://moodle.org/mod/forum/discuss.php?d=327662#p1334774
- https://moodle.org/mod/forum/discuss.php?d=327662#p1335036
(Ken, let me know if your Karma box has become too heavy. ;)

So the remaining question is, why does it lead to a coding error?
Average of ratings Useful (2)