The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel LDAP authorisation

Discussion in 'General Discussion' started by igluksic, Sep 26, 2008.

  1. igluksic

    igluksic Registered

    Joined:
    Sep 26, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Is there a possibility of implementing an authorisation over an existing LDAP based data storage.

    I guess there is no big deal with emails, but is there a way of doing this to cPanel services (ports 2083 and less importantly 2087) without them crashing.

    OFC not to mention that copying records from LDAP to any locally stored format is not an option. ;)

    I.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    There is no support for this in our product.
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I know some customers have looked into implementing custom LDAP solutions based off the fact cPanel/WHM users are just standard Unix users. However, I am currently unaware of anyone who has successfully created a custom (unsupported) LDAP-based solution for cPanel/WHM logins.
     
  4. FrankLaszlo

    FrankLaszlo Active Member

    Joined:
    Dec 19, 2008
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Dragging this topic back up, as its come to my attention this could be very useful in our situation.

    Why does cPanel/WHM not use PAM for authentication? This would facilitate the use of LDAP. It seems like its just reading users from /etc/passwd, which makes it very unfriendly to modification.
     
  5. FrankLaszlo

    FrankLaszlo Active Member

    Joined:
    Dec 19, 2008
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    I think I found the code that handles authentication. I believe its "/usr/local/cpanel/Cpanel/PwCache.pm" that handles it. (please let me know if I am off base)

    So my new question is, should I decide to modify this to suit my needs, how often does it get changed? If I set the immutable flag on it, can you foresee any potential issues I might encounter?

    Assuming I get it working properly, do you have a department to submit patches to? I would very much like to see this implemented upstream so I would no longer have to keep track of it.
     
Loading...

Share This Page