Closed kvisnia closed 6 years ago
The code down was (and is) on services. Creates users homeDirectory attribute on ldap. Has to be moved into buildUser function too on ldap. Also must add static attribute loginShell: '/bin/bash' on user create.
let changeHomeDir if (user.eduPersonAffiliation === 'student') { let tmpHomeDir = '/home/' + user.eduPersonAffiliation + '/' + user.eduPersonPrimaryAffiliation + '/' + user.regyear + '/' + user.uid changeHomeDir = new ldap.Change({ operation: 'replace', modification: { homeDirectory: tmpHomeDir } }) } else { let tmpHomeDir = '/home/' + user.eduPersonAffiliation + '/' + user.uid changeHomeDir = new ldap.Change({ operation: 'replace', modification: { homeDirectory: tmpHomeDir } }) }
The code down was (and is) on services. Creates users homeDirectory attribute on ldap. Has to be moved into buildUser function too on ldap. Also must add static attribute loginShell: '/bin/bash' on user create.