Menu

#1946 can't connect to server

closed
5
2005-02-14
2005-02-11
No

debian sarge system, kernel 2.6.9
OpenLDAP server slapd installed from .deb package
slapd version 2.1.30-3
Webmin 1.180

Fresh install of of the OpenLDAP server slapd, config file is /etc/ldap/slapd.conf
I click on the "LDAP Users and Groups" link from the "System" page of webmin
It prints "If no LDAP NSS configuration file is set in the module configuration, an LDAP server, login, password, base user DN and base group DN must be set instead." I go to the module configuration page and insert /etc/ldap/slapd.conf in the "Linux LDAP NSS library config file" item. Click on save, then webmin prints "Failed to connect to LDAP server port 389. Maybe your module configuration is incorrect." Slapd is running and I can "telnet localhost 389" on the server, and I connect to the daemon. Running "slapd -d 1" confirms that the daemon is answering on port 389.

I can provide more info if needed.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2005-02-11
    • status: open --> closed
     
  • Jamie Cameron

    Jamie Cameron - 2005-02-11

    Logged In: YES
    user_id=129364

    I think the problem here is that Webmin doesn't know to
    connect to localhost by default. To fix this, edit the file
    /usr/share/libnss-ldap/ldap.conf and add the line
    host=localhost . Future Webmin releases will handle this
    problem better ..

     
  • John Palkovic

    John Palkovic - 2005-02-12

    Logged In: YES
    user_id=985118

    I think you are wrong. I have tried fooling with the host name on the module config page and in the config files. It makes no difference. Watching a running "slapd -d 1" shows that there is no connection. Webmin simply is not talking to port 389 whether it's localhost, 127.0.0.1, or any IP or hostname associated with the server in question. It's just broken.

     
  • Jamie Cameron

    Jamie Cameron - 2005-02-12

    Logged In: YES
    user_id=129364

    You might want to try the following settings on the Module
    Config page :

    Linux LDAP NSS library config file - None
    LDAP server host - Localhost
    LDAP server port - 375
    LDAP Use TLS? - No (unless you are using TLS, in which case Yes)
    Bind to LDAP server as - the admin login for your LDAP server
    Credentials for bind name above - the password for above
    Base for users - the base dc for Unix users
    Base for groups - the base dc for Unix groups

    this will bypass any settings in the ldap.conf file.

     
  • Jamie Cameron

    Jamie Cameron - 2005-02-12
    • status: closed --> open
     
  • Nobody/Anonymous

    Logged In: NO

    I am having the same issue. My LDAP server is up and
    running with no problems and the config files are all OK for
    other clients. Webmin is just broken.

    From posts I've seen in many places, there are folks who had
    working systems and it broke when they upgraded to 1.170-R3.
    Gentoo folks aren't going to 1.180 because it isn't
    consisdered stable.

     
  • GandalftheWhite

    GandalftheWhite - 2005-02-13

    Logged In: YES
    user_id=1218102

    I'm having the same problem. OpenLDAP is configured and
    working, but Webmin won't connect no matter what.

    I've seen a TON of other posts that indicate folks that are
    using 1.170-r3 or 1.180 are having the problems. It's just
    plain broken.

    Folks that upgraded are somewhat annoyed... :)

    I can run all the ldapsearch commands that I want and
    authenticate all I want and it works... webmin just won't
    connect.

     
  • Jamie Cameron

    Jamie Cameron - 2005-02-13

    Logged In: YES
    user_id=129364

    One suggestion for the original requestor -
    /etc/ldap/slapd.conf is not the right configuration file for
    the module to use. You need to instead enter the NSS ldap
    *client* config file, which is
    /usr/share/libnss-ldap/ldap.conf on Debian.

     
  • John Palkovic

    John Palkovic - 2005-02-14

    Logged In: YES
    user_id=985118

    /usr/share/libnss-ldap/ldap.conf comes with the libnss-ldap
    packing in debian sarge. I installed this package and it
    works now. Perhaps a check could be added to webmin for this
    package?

     
  • Jamie Cameron

    Jamie Cameron - 2005-02-14

    Logged In: YES
    user_id=129364

    The next Webmin release will include code to ensure that you
    enter the path to the ldap.conf file, not slapd.conf ..

     
  • Jamie Cameron

    Jamie Cameron - 2005-02-14
    • status: open --> closed
     

Log in to post a comment.