【原创】ubuntu9.04下gosa的安装与配置
来源:互联网 发布:通关单数据查询 编辑:程序博客网 时间:2024/06/05 15:38
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 如何使用
现在还不会,未完待续!
这个我就不多说了,官网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 如何使用
现在还不会,未完待续!
0 0
- 【原创】ubuntu9.04下gosa的安装与配置
- 原创 Ubuntu9.04安装配置
- Ubuntu9.04 desktop下LAMP的安装与配置
- ubuntu9.10下fcitx的安装与配置
- postgresql8.4在ubuntu9下的安装与基本配置
- ubuntu9.04下kvm虚拟机的安装与桥接网络配置(总结)
- Ubuntu9.04安装与安装后配置
- Ubuntu9.04下讯雷的安装方法与wine配置
- ubuntu9.04 mysql 安装与配置
- Ubuntu9.04安装配置
- ubuntu9.04下的lamp安装
- ubuntu9.04下的lamp安装
- ubuntu9.04下的ns2安装问题
- ubuntu9.04下的lamp安装
- Ubuntu9.04下使用apt安装配置LAMP
- Ubuntu9.04下使用apt安装配置LAMP
- 我的Ubuntu9.10安装与配置(转载)
- ubuntu9.04的安装
- 拦截器filter在rest客户端织入token
- 百科知识-这些知识你知道吗(4)
- get post 都可以实现相互功能,只是组织形式,优缺点不同
- PendingIntent与Intent的区别
- Android 获取屏幕尺寸与密度
- 【原创】ubuntu9.04下gosa的安装与配置
- 前端学习的小笔记——CSS
- rest 两种客户端数据返回的处理方式
- 【原创】在Ubuntu中设置环境变量PATH时遇到的问题
- return finally执行顺序
- 自己实现的listener监听器
- C++单例模式
- NEON指令集
- linux下软连接和硬链接的创建