Intermitent problem to login (OpenLDAP + Samba Domain Controller On Ubuntu 7.10)

Discussion in 'HOWTO-Related Questions' started by Aristo, Jan 22, 2008.

  1. Aristo

    Aristo New Member

    Hello,

    I follow the HowTo exactly and tried with multiples installations from scratch but I always have the same problem: Problem to login.

    I now know that I got an Intermitent problem.

    At boot, sometimes, the boot process stuck at bind startup. If I press enter, I got the login prompt. If I tried to login the login process will freeze the tty1. I've tried with all tty* and it does the same.

    So I reboot (and now I got an error that OpenLDAP is not start and he can't communicate with the port 953 on 127.0.0.1 RNDC).

    After the reboot, sometimes bind start normally and all the process boot normally: Like openldap, samba, sshd, apache2, etc. So now I can boot, because my openldap is startup and nsswitch.conf authenticate with it.

    I search for logs, daemon logs, syslog, message, dmesg, nothing.. just a little error message from message: Kernel: Faillure registering capabilities with primary security module.

    And that is related (I think) with SElinux that is disable by default on Ubuntu.


    Thank you in advance for your help!
     
    Last edited: Jan 22, 2008
  2. falko

    falko Super Moderator ISPConfig Developer

  3. Aristo

    Aristo New Member

    hum.... so how to fix it? I didn't found a solution
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?
     
  5. Aristo

    Aristo New Member

    [email protected]:/home/samba# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:nfs *:* LISTEN -
    tcp 0 0 *:ldap *:* LISTEN 4313/slapd
    tcp 0 0 *:netbios-ssn *:* LISTEN 4476/smbd
    tcp 0 0 *:sunrpc *:* LISTEN 5249/portmap
    tcp 0 0 *:www *:* LISTEN 5208/apache2
    tcp 0 0 *:webmin *:* LISTEN 4555/perl
    tcp 0 0 *:34386 *:* LISTEN 4395/rpc.mountd
    tcp 0 0 192.168.1.2:domain *:* LISTEN 4255/named
    tcp 0 0 localhost:domain *:* LISTEN 4255/named
    tcp 0 0 *:45463 *:* LISTEN -
    tcp 0 0 *:43289 *:* LISTEN 5283/rpc.statd
    tcp 0 0 *:smtp *:* LISTEN 4456/master
    tcp 0 0 localhost:953 *:* LISTEN 4255/named
    tcp 0 0 *:microsoft-ds *:* LISTEN 4476/smbd
    tcp 0 0 localhost:ldap localhost:46140 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:46141 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:46135 ESTABLISHED4313/slapd
    tcp 0 0 localhost:46141 localhost:ldap ESTABLISHED5222/apache2
    tcp 0 0 localhost:41229 localhost:ldap ESTABLISHED5608/pickup
    tcp 0 0 localhost:ldap localhost:46139 ESTABLISHED4313/slapd
    tcp 0 0 192.168.1.2:58533 192.168.2.:microsoft-ds ESTABLISHED-
    tcp 0 0 localhost:ldap localhost:46133 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:46136 ESTABLISHED4313/slapd
    tcp 0 0 localhost:46137 localhost:ldap ESTABLISHED5215/apache2
    tcp 0 0 localhost:ldap localhost:44887 ESTABLISHED4313/slapd
    tcp 0 0 localhost:44892 localhost:ldap ESTABLISHED4583/0
    tcp 0 0 localhost:46133 localhost:ldap ESTABLISHED5209/apache2
    tcp 0 0 192.168.1.:microsoft-ds 192.168.1.221:2751 ESTABLISHED5610/smbd
    tcp 0 0 localhost:55547 localhost:ldap ESTABLISHED5610/smbd
    tcp 0 0 localhost:44891 localhost:ldap ESTABLISHED4159/login
    tcp 0 0 localhost:ldap localhost:41229 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:44892 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:46137 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:55547 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:44890 ESTABLISHED4313/slapd
    tcp 0 0 localhost:44887 localhost:ldap ESTABLISHED4461/qmgr
    tcp 0 0 localhost:44890 localhost:ldap ESTABLISHED4476/smbd
    tcp 0 0 localhost:46135 localhost:ldap ESTABLISHED5214/apache2
    tcp 0 0 localhost:46134 localhost:ldap ESTABLISHED5211/apache2
    tcp 0 0 localhost:46136 localhost:ldap ESTABLISHED5212/apache2
    tcp 0 0 localhost:46140 localhost:ldap ESTABLISHED5221/apache2
    tcp 0 0 localhost:ldap localhost:44891 ESTABLISHED4313/slapd
    tcp 0 0 localhost:ldap localhost:46134 ESTABLISHED4313/slapd
    tcp 0 0 localhost:46139 localhost:ldap ESTABLISHED5220/apache2
    tcp6 0 0 *:ldap *:* LISTEN 4313/slapd
    tcp6 0 0 *:domain *:* LISTEN 4255/named
    tcp6 0 0 *:ssh *:* LISTEN 4280/sshd
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 4255/named
    tcp6 0 444 ::ffff:192.168.1.2%:ssh ::ffff:192.168.1.2:2351 ESTABLISHED4581/sshd: sysadmin
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Some daemons are listening on unusual (and high) ports, e.g. Apache, qmgr, smbd, etc., but I don't know why... :confused:
     

Share This Page