Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    Default cPanel LDAP authorisation

    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. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by igluksic View Post
    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.
    There is no support for this in our product.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #4
    cPanel Partner NOC cPanel Partner NOC Badge asofrank's Avatar
    Join Date
    Dec 2008
    Posts
    34

    Default

    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. #5
    cPanel Partner NOC cPanel Partner NOC Badge asofrank's Avatar
    Join Date
    Dec 2008
    Posts
    34

    Default

    Quote Originally Posted by asofrank View Post
    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.
    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.

Similar Threads & Tags
Similar threads

  1. CPanel with PHP4 and LDAP ???
    By mcn_doug in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-19-2010, 11:33 AM
  2. ldap and cPanel
    By bisdiouf in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-25-2006, 11:19 AM
  3. ldap and cPanel
    By bisdiouf in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-25-2006, 11:14 AM
  4. CPanel + LDAP Auth
    By spd1snd in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-05-2006, 11:43 AM
  5. Slow authorisation
    By nmotika in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-06-2002, 03:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube