Re: [SOGo] LDAP Setup on SL6.3 (RHEL6/CENTOS6)

2012-12-12 Thread Marc Patermann

Marc,

mochouin...@m0c.com schrieb (12.12.2012 06:10 Uhr):

I'm following the document : 
http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf


But I'm at the LDAP setup right now and there seem to be lacking
instruction to create the basic LDAP structure / domain to get up and
running quickly.

There is also no infomation about how to setup an IMAP server ...
The document is about how to integrate SOGo to you existing environment.
If you want to have a "quick start" solution, you should take the ZEG 
image. With that you have a working environment.



I'm sure I could get to slam something together to get it working,
but I prefer to get the supported setup that is known to work well.
Also the IMAP server setup seem to be missing some information.

Oh, you got that too. :)


I appreciate any help you guys can give me.
You can examine the ZEG installation and transfer it to your real 
servers, if you like.
Otherwise there is a lot of information about setting up IMAP and LDAP 
servers - even on your preferred distribution. Check that out and build 
the environment you need. SOGo will probably deal with it quite well, 
because it is very flexible, but cannot do this for you.



Marc
--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] LDAP Setup on SL6.3 (RHEL6/CENTOS6)

2012-12-11 Thread mochouinard
Hi,

I'm following the document :
http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf

But I'm at the LDAP setup right now and there seem to be lacking instruction to
create the basic LDAP structure / domain to get up and running quickly.

I'm sure I could get to slam something together to get it working, but I prefer
to get the supported setup that is known to work well.  Also the IMAP server
setup seem to be missing some information.

I appreciate any help you guys can give me.

Thanks

Marc O.

Here my install script based on what I followed in the document (Some stuff I
did figure out that missing in the document) :
cat << EOF > /etc/yum.repos.d/inverse.repo
[SOGo]
name=Inverse SOGo Repository
baseurl=http://inverse.ca/downloads/SOGo/RHEL6/\$basearch
gpgcheck=0
EOF

yum install -y sogo openldap-clients openldap-servers
yum install -y sope49-gdl1-postgresql postgresql-server

service postgresql initdb
service postgresql start
chkconfig --level 3 postgresql on

su - sogo
defaults write sogod SOGoTimeZone "America/Montreal"
defaults write sogod SOGoMailDomain "acmedomain.net"
defaults write sogod SOGoLanguage English
defaults write sogod SOGoAppointmentSendEMailNotifications YES
defaults write sogod SOGoFoldersSendEMailNotifications YES
defaults write sogod SOGoACLsSendEMailNotifications YES

defaults write sogod SOGoUserSources '({CNFieldName = cn;IDFieldName = uid;
UIDFieldName = uid; IMAPHostFieldName = mailHost;baseDN =
"ou=users,dc=acmedomain,dc=net";bindDN =
"uid=sogo,ou=users,dc=acmedomain,dc=net";bindPassword = qwerty; canAuthenticate
= YES; displayName = "Shared Addresses";hostname = "localhost"; id =
public;isAddressBook = YES; port=389;})'

exit

su - postgres
createuser --no-superuser --no-createdb --no-createrole \
--encrypted --pwprompt sogo
#Use sogo as password
createdb -O sogo sogo

cat << EOF >> /var/lib/pgsql/data/pg_hba.conf
hostsogosogo127.0.0.1/32md5
EOF

exit
service postgresql restart

su - sogo
defaults write sogod SOGoProfileURL
'postgresql://sogo:sogo@localhost:5432/sogo/sogo_user_profile'
defaults write sogod OCSFolderInfoURL
'postgresql://sogo:sogo@localhost:5432/sogo/sogo_folder_info'
defaults write sogod OCSSessionsFolderURL
'postgresql://sogo:sogo@localhost:5432/sogo/sogo_sessions_folder'

defaults write sogod SOGoMailingMechanism smtp
defaults write sogod SOGoSMTPServer localhost

defaults write sogod SOGoDraftsFolderName Drafts
defaults write sogod SOGoSentFolderName Sent
defaults write sogod SOGoTrashFolderName Trash
defaults write sogod SOGoIMAPServer localhost

exit
sed -i "s/yourhostname/mail01.acmedomain.net/g"  /etc/httpd/conf.d/SOGo.conf
service sogod start
service httpd start
chkconfig --level 3 sogod on
chkconfig --level 3 httpd on

cat << EOF > ~/admin.ldif
dn: uid=admin,ou=users,dc=acmedomain,dc=net
objectClass: top
objectClass: inetOrgPerson
objectClass: person
objectClass: organizationalPerson
uid: admin
cn: Marc Olivier Chouinard
mail: ad...@acmedomain.net
sn: Chouinard
givenName: Marc Olivier
EOF

service slapd start
# This is where thing doesn't work... I guessing I need to inatialize the
domain first, but I couldn't find the basic schema recommended .
ldapadd -f ~/admin.ldif -x -w qwerty -D cn=Manager,dc=acmedomain,dc=net
-- 
users@sogo.nu
https://inverse.ca/sogo/lists