【原创】ubuntu9.04下gosa的安装与配置

1 下载gosa
这个我就不多说了,官网http://oss.gonicus.de/上提供最新版的下载。我使用的版本是gosa-combined-2.6.10.tar.bz2

2 安装gosa
查看INSTALL文件,部分内容如下:
GOsa 2.6 QUICK INSTALL
======================

Prequisite:

You have a system up and running. It has apache and PHP installed
and there is a blank (or prefilled) but working LDAP available.

---

Installing GOsa from source:

Unpack the GOsa tarball and move the main gosa directory to
a place your webserver is configured to find it. The default
location will be /usr/share/gosa. For later reference,I assume
that you've choosen this path,too.

Create the directory /var/spool/gosa for the smarty compile directory.
Make it read/write for the webserver (additional chmod 770). You may
want to move it elsewhere,configure it in gosa.conf.

Create the configuration directory /etc/gosa and make sure
that your webserver can read it.


As a summmary,you Now have these directories for GOsa:

/etc/gosa
/var/spool/gosa
/usr/share/gosa

Update the class cache:

Run " update-gosa" from the GOsa main directory.

After this has been done,include settings for GOsa in your apache
config
:

# Set alias to gosa
Alias /gosa /usr/share/gosa/html

Assumed you've installed PHP >= 5.2.0,reload your apache webserver
and do your first GOsa dry run without configuration:

http[s]://your-server/gosa

GOsa setup will perform some basic system checks about general
prerequisites. The setup asks some questions and provides a
basic gosa.conf to save in /etc/gosa. Follow the instructions
until you're able to log in.

You're done. Lets play with the GUI.

3 配置
配置的过程还是很让人郁闷的……

3.1 需要安装一些必要的package。列表如下:
PHP5-imap
PHP5-imagick
PHP5-mhash
PHP5-cli
Crypt-SmbHash
这里只有Crypt-SmbHash在更新源里没有,需要从网上下载。

3.2 修改PHP.ini文件,将内存限制修改为32或更高(PS:在我的电脑上该值必须大于32MB,不然会报错)

3.3 添加schema文件
由于goda会添加自己的object class,所以需要将gosa中的schema文件加入到slapd的schema目录下,并在slapd.conf文件中include这些schema, 不过需要注意的是include的顺序
命令
cd /usr/share/gosa/contrib/openldap
sudo cp *.schema /usr/local/openldap/etc/openldap/schema

修改slapd.conf文件
命令:
cd /usr/local/openldap/etc/openldap
sudo gedit slapd.conf
添加内容如下:

include /usr/local/openldap/etc/openldap/schema/samba3.schema
include /usr/local/openldap/etc/openldap/schema/gosystem.schema
include /usr/local/openldap/etc/openldap/schema/gofon.schema
include /usr/local/openldap/etc/openldap/schema/gofax.schema
include /usr/local/openldap/etc/openldap/schema/goto.schema
include /usr/local/openldap/etc/openldap/schema/goserver.schema
include /usr/local/openldap/etc/openldap/schema/gosa-samba3.schema
include /usr/local/openldap/etc/openldap/schema/trust.schema
这里需要十分注意的就是添加的顺序。在gosa的安装文件中,给代了一个例子,按照例子中的顺序即可。

3.4 继续下去,知道成功
剩下的配置就没有什么问题了。

4 如何使用 现在还不会,未完待续!

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...