Diff for "ebox_setup"


Differences between revisions 6 and 9 (spanning 3 versions)
Revision 6 as of 2010-08-27 09:01:26
Size: 1996
Editor: static-213-115-88-58
Comment:
Revision 9 as of 2011-11-13 05:58:30
Size: 2094
Editor: c83-254-148-65
Comment: correct misspellings
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Ställa in EBOX == == Setup the EBOX ==
Line 4: Line 4:
Before we can use our ebox server and connect other services to it we have to make som setup on the ebox to get it to work Before we can use our ebox server and connect other services to it, we have to do some setup on the ebox to get it to work.
Line 8: Line 8:
Make shoure that the iptables is off ore acceting connections on port 389 from the addres on where you what to put your service Make sure that iptables is off or accepting connections on port 389 from the address on which you want to put your service:
Line 19: Line 19:
We have to make shoure that our ldao server is responding on all interfaces so that we can connect to it from an other server. We have to make sure that our ldap server is responding on all interfaces so that we can connect to it from another server.
{{{
Line 22: Line 22:

Should look like this
}}}
Should look like this:
{{{
Line 26: Line 26:
}}}
Line 29: Line 30:
'''Linux Login PAM'''
Line 30: Line 32:
'''Linux Loggin PAM''' In order for the Ubuntu user to be able to login later, we must change the login skel to /bin/bash
{{{
    sudo nano /etc/ebox/80samba.conf
}}}
And change so that it looks like:
{{{
    login_shell = /bin/bash
}}}
this will change the login skel for a new user. But for an existing user ("matte") you must run:
{{{
    smbldap-userinfo matte
}}}
Don't change anything other than the login skel or the user account can break
Line 32: Line 46:
In order that our ubuntu user should be able to loggin later we must change the login skel to /bin/bash '''LDAP Admin Information'''
Line 34: Line 48:
    sudo nano /etc/ebox/80samba.conf
    
And chnage so that is looks like
Sometimes when you connect other services to the ebox ldap you have to enter the ldap admin account. And to get the admin account and password do the following;
Line 38: Line 50:
    login_shell = /bin/bash

this will change the login skel for new user. But for old user you must run

    smbldap-userinfo matte
    
Dont change anything other then the login skel ore the user can break

'''LDAP Admin uppgifter'''

Somtimes when you connect other services to the ebox ldap you have to enter the ldap admin acount. And to get the admin account and password out do this.

get root
get root:
{{{
Line 52: Line 53:

Get all of the ldap tree
}}}
Get all of the ldap tree:
{{{
Line 56: Line 57:

Search in the output for this entery
    
}}}
Search in the output for this entry:
{{{
Line 65: Line 66:
}}}
Line 69: Line 70:
No get the password 

Now get the password:
{{{
Line 73: Line 73:

And ther you have you admin account and password for the ldap server.
}}}
And there you have your admin account and password for the ldap server.
Line 78: Line 78:
Test if you have connection to the ebox from an external server Test if you have connection to the ebox from an external server:
{{{
Line 81: Line 81:

You should get
}}}
You should get:
{{{
Line 86: Line 86:
}}}
Line 87: Line 88:
Time to get some services to the ebox server Time to get some services to the ebox server.

Setup the EBOX

Before we can use our ebox server and connect other services to it, we have to do some setup on the ebox to get it to work.

IPTABLES

Make sure that iptables is off or accepting connections on port 389 from the address on which you want to put your service:

    iptables -L

SLAPD

We have to make sure that our ldap server is responding on all interfaces so that we can connect to it from another server.

    sudo nano /etc/default/slapd

Should look like this:

    SLAPD_SERVICES="ldap://0.0.0.0 ldapi://%2fvar%2frun%2fslapd%2fldapi/????x-mod=0$

Linux Login PAM

In order for the Ubuntu user to be able to login later, we must change the login skel to /bin/bash

    sudo nano /etc/ebox/80samba.conf

And change so that it looks like:

    login_shell = /bin/bash

this will change the login skel for a new user. But for an existing user ("matte") you must run:

    smbldap-userinfo matte

Don't change anything other than the login skel or the user account can break

LDAP Admin Information

Sometimes when you connect other services to the ebox ldap you have to enter the ldap admin account. And to get the admin account and password do the following;

get root:

    sudo su

Get all of the ldap tree:

    ldapsearch -x -b"dc=kalle,dc=se"

Search in the output for this entry:

    # ebox, kalle.se
    dn: cn=ebox,dc=kalle,dc=se
    objectClass: organizationalRole
    objectClass: simpleSecurityObject
    description: eBox admin account
    cn: ebox

So my admin user is "cn=ebox,dc=kalle,dc=se"

Now get the password:

    less /etc/ldap.secret

And there you have your admin account and password for the ldap server.

TEST

Test if you have connection to the ebox from an external server:

    telnet ebox-ip 389

You should get:

    Connected to localhost.
    Escape character is '^]'.

Time to get some services to the ebox server.

ebox_setup (last edited 2011-11-13 05:58:30 by c83-254-148-65)