ecryptfs does not work for domain users (AD, likewise/powerbroker)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ecryptfs-utils (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Ecryptfs encryption does not work for domain users in an active directory domain, integrated with likewise open / powerbroker for the following reasons:
- domain user names contain backslashes (DOMAIN\user.name). Ecryptfs checks for valid usernames, which mustn't contain backslashes
- There is no pam hook which automatically activates encryption of the home directory of new domain users
Steps to reproduce:
- Set up AD controller, e.g. via samba4
- Set up ecryptfs-utils on an ubuntu machine
- Add ubuntu machine to domain with likewise open / powerbroker
- Login with domain user
Result:
- Home directory is unencrypted
Additional steps:
- Manually encrypt home directory of domain user
Additional result:
- On login decryption fails with message: "Username has unsupported characters"
Expected result:
Home directories of domain users can easily be encrypted and decrypted with ecryptfs
Patched version of ecryptfs-utils is available here:
bzr branch lp:~dominik-gierlach/+junk/ecryptfs-enterprise gierlach/ enterprise
ppa:dominik-
Changes: askubuntu. com/questions/ 111803/ enable- ecryptfs- for-all- new-users- even-those- authenticating- through- kerberos- an)
- Allow backslashes in usernames
- Add pam hook and scripts (see http://