First Last Prev Next    No search results available
Details
: please confirm: fixed: usernames are caseinsensitive duri...
Bug#: 1383
: Skolelinux
: debian-edu-config
Status: RESOLVED
Resolution: FIXED
: All
: Linux
: lenny-test
: P1
: critical

:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Ronny Aasen <ronny@skolelinux.org>
Assigned To: Dummy user for bugs missing someone responsible <debian-edu@lists.debian.org>
:

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions
Votes: 0


Description:   Opened: 2009-10-13 11:43
usernames are case insesitive during login. 
i have tested with thinclient, and NX and danielsan have tested on a
workstation

the username RoNnY can login just as well as the correct username ronny
when you login with a different username you loose your group meneberships.
it's like a separate account with the same homedir. 
This can allow the user to circumvent group based restrictions and loose access
rights for group based file rights. 

set to p1 for it's security implications.

http://honk.sigxcpu.org/projects.html#pam-naming might be used to fx: enforce
lowercase usernames. 

kind regards
Ronny Aasen
------- Comment #1 From Holger Levsen 2009-10-13 11:53:46 -------
to explain the effects a bit more verbose:

<sep> the poor admin at luster spent weeks troubleshooting a issue where a
teacher never could access the school shared documents. she logged in
constantly with capital first letter in her name, he constantly tested with her
correct username. :s

<sep> also this explains why some students had full internet when they logged
in as exam users. since they would not be in the group blocking them in the
proxy... 
------- Comment #2 From Petter Reinholdtsen 2009-11-05 12:05:32 -------
The problem probably originates from the LDAP searches which are case
insensitive.  No idea how to avoid it.

I believe the ldap search rules are in /etc/nss-ldapd.conf .
------- Comment #3 From Holger Levsen 2009-11-05 12:27:04 -------
during the gathering we discussed to make login casesensitive again, for the
benefit of releasing our lenny this year.

this is because this fix is quite straightforward. if someone comes up with a
fix for incasesenstive logins in time, this is of course also fine :-)
------- Comment #4 From Ronny Aasen 2009-11-05 17:18:35 -------
Debian bug, even potential for a stable point release update. 
At what time will we know if this will be in stable or not ? 

http://bugs.debian.org/552433


Ronny
------- Comment #5 From Oded Naveh 2009-11-05 17:37:52 -------
I believe this behaviour is determined by the "EQUALITY" matching rule defined
for attribute "uid" in the schema, not sure which one (built-in perhaps?) as
the definition in 'core.schema' is commented out, but it reads:

# Derived from RFC 1274, but with new "short names"
#
#attributetype ( 0.9.2342.19200300.100.1.1
#       NAME ( 'uid' 'userid' )
#       DESC 'RFC1274: user identifier'
#       EQUALITY caseIgnoreMatch
#       SUBSTR caseIgnoreSubstringsMatch
#       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

No idea how to avoid it too.

Looking at 'id' output:

tjener:~# id demstu
uid=10019(demstu) gid=10019(demstu)
groups=10004(students),10005(none),10019(demstu)

tjener:~# id DemStu
uid=10019(DemStu) gid=10019(demstu) groups=10019(demstu)

I suspect the inconsistency stems from the case sensitivity of:

attributetype ( 1.3.6.1.1.1.1.12 NAME 'memberUid'
        EQUALITY caseExactIA5Match
        SUBSTR caseExactIA5SubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

in:

objectclass ( 1.3.6.1.1.1.2.2 NAME 'posixGroup'
        DESC 'Abstraction of a group of accounts'
        SUP top STRUCTURAL
        MUST ( cn $ gidNumber )
        MAY ( userPassword $ memberUid $ description ) )

Both defined in 'nis.schema'.
------- Comment #6 From Ralf 2009-11-08 23:15:43 -------
Yet another remark aside:
Regarding scripts that are designed to kill left-behind processes of logged-out
users (killer etc.), users could also evade process purging by using creative
capitalisation.
------- Comment #7 From Petter Reinholdtsen 2009-12-07 00:06:01 -------
A fix for this is nss-ldapd in Lenny is being worked on, and I hope will show
up soon.

http://lists.debian.org/debian-release/2009/12/msg00037.html got some
information.
------- Comment #8 From Vagrant Cascadian 2009-12-21 22:33:52 -------
uploaded nss-ldapd_0.6.7.2~edu1_i386.changes to lenny-test, though it may need
ftpmaster approval and will need confirmation that it actually resolves the
issue.
------- Comment #9 From Holger Levsen 2009-12-22 14:43:48 -------
fixed packages have been uploaded to s-p-u by the maintainer and to lenny-test
by vagrantc. please confirm it fixes the issue.
------- Comment #10 From Holger Levsen 2009-12-28 14:09:36 -------
afaik this is fixed, can someone test and confirm, please?!
------- Comment #11 From Philipp Huebner 2009-12-28 17:55:02 -------
I tested it, and can confirm that this is fixed. closing! :D

First Last Prev Next    No search results available