#47 Can you grab active directory attributes

pam-mount
closed-fixed
pam-mount (40)
5
2011-07-30
2011-06-08
Anonymous
No

I don't know if this is the place to put this.. .but I couln't find anywhere else to..

But, can pam_mount grab the active directory homeDirectory attribute because what i am working with isn't a set folder or a set place. It depends on their username, what lan they are on, what their first initial is, so on and so forth.

Discussion

  • Jan Engelhardt

    Jan Engelhardt - 2011-06-08

    What is the format of homeDirectory's value? I asked that many times, but originating users never really replied on the mailing list.

     
  • Jan Engelhardt

    Jan Engelhardt - 2011-06-08
    • assigned_to: nobody --> jengelh
    • status: open --> pending-accepted
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-06-09

    \\student-pool.school.edu\STUDMAJ\users\j\jadiby

    thats just for one user... there is a STUDMAJ1 STUDMAJ2 STUDMAJ3 along with their first initial and username

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-06-10
    • status: pending-accepted --> open-remind
     
  • Nobody/Anonymous

    This is from my email to you in April:

    Add me to another one of the users that would like to see this happen.
    Authentication is usually happening through winbind, and pam_winbind
    exports PAM_WINBIND_HOMEDIR to the PAM stack (
    http://www.samba.org/samba/docs/man/manpages-3/pam_winbind.8.html ).
    Maybe you could parse the \\server\path\to\share from
    PAM_WINBIND_HOMEDIR into %(WBSERVER) and %(WBPATH) to be used in
    volumes for unusual home directory share locations. <volume
    options="user=%(DOMAIN_USER)" server="%(WBSERVER)" path="%(WBPATH)"
    mountpoint="~/network-share" fstype="cifs"> which would always get
    their home directory regardless of where it is?

    Matt

    and your response:
    Certainly. This merely needs a patch to ignore the server="" attribute
    if it does not exist, and you can then use path='%(env
    PAM_WINBIND_HOMEDIR) in theory. rdconf needs to be adjusted. As the utab
    branch is currently in shaping, necessary fixups to pmt_vol_to_dev get
    delayed.

    I've added a new support ticket to do as you said. I'm not sure doing the (env PAM_WINBIND_HOMEDIR) would work though, as the it contains backslashes for the \\server\path\to\folder instead of forward slashes

     
  • Jan Engelhardt

    Jan Engelhardt - 2011-06-18
    • status: open-remind --> open-accepted
     
  • Jan Engelhardt

    Jan Engelhardt - 2011-07-30
    • milestone: --> pam-mount
    • labels: --> pam-mount
    • status: open-accepted --> pending-fixed
     
  • Jan Engelhardt

    Jan Engelhardt - 2011-07-30

    Implemented in commit v2.10-8-g989439e. (This will then appear in the 2.11
    release.)

    This makes it possible to do without the server= attribute; and using %(env whatever) is already possible per se.

    thanks,
    Jan

     
  • Jan Engelhardt

    Jan Engelhardt - 2011-07-30

    Closing this item to reduce the spamvector. Please open a new ticket if you have anything to add, or utilize the mailing list.

     
  • Jan Engelhardt

    Jan Engelhardt - 2011-07-30
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks