ITeye博客

suene的博客

suene · 共 10 篇文章

离开了

停止更新好久了, 新家搬到 http://sunyi.io

2015-11-02 13:50 · 评论(0)

open ldap

sudo env CPPFLAGS="-I/usr/BerkeleyDB/include" LDFLAGS="-L/usr/BerkeleyDB/lib" ./configure --prefix=/usr/openldap-2.4.34 --sysconfdir=/etc --enable-ldbm --enable-lmpasswd --enable-spasswd --enable-dbb -enable-ldap ./configure --prefix=/usr/openldap-2.4.34 --sysconfdir=/etc --enable-ldbm --enable-lmp…

2013-04-15 13:15 · 评论(0) · openldap

linux 安装 mysql

http://www.cnblogs.com/chenjunbiao/archive/2011/01/24/1940256.html

2013-04-12 15:36 · linux · 评论(0) · MySQL · Linux

Ubuntu 安装 ftp [转]

vsftpd是Linux系统下非常常用的一款FTP程序,天缘也是事隔多年又用起这个软件,安全及性能不在话下,当然前提是要摸索着如何配置,本文汇总vsftp常用的安装和配置命令,均是入门级的,就像天缘博客一样。(注:以下命令均在终端中输入) 一、安装、重装、卸载vsftp 全新安装:apt-get install vsftpd 重新安装:apt-get --reinstall install vsftpd 卸载并清除配置文件:apt-get -purge remove vsftpd 关于如何卸载最干净问题,每种软件在安装时可能包含多个安装包模块,所以单纯的remove主程序包一般来讲肯定不干净…

2013-03-19 11:49 · linux · 评论(0) · Linux · ftp

Spring Security , authenticate use LDAP& DataBase.

基础部分参见: http://suene.iteye.com/blog/1829807 [code="xml"] [/code] [code="java"] /** 先根据属性 {@link #authenticateByLdap }, 是否使用 LDAP 验证 用户信息. 否则使用数据库查询验证用户. * * 如果验证成功,则以数据库获取用户的权限. */ public class LdapAndDbAuthenticationProvider implements AuthenticationProvider { private static final Logger logger = …

2013-03-18 17:32 · java · 评论(0) · Java · Spring Security · LDAP

搭建 Apache Directory Server

先下载 Apache DS http://directory.apache.org/apacheds/downloads.html 然后下载 Apache Directory Studio http://directory.apache.org/studio/downloads.html 然后使用 Studio 连接 Apache DS,url指向那个机器,端口是 10389 . 下面是默认的样子. 然后右键点击 dc=example,dc=com. 可以创建 Entry ,这样就能构建自己的想要的目录结构了. 创建目录成功后,可以编辑它的属性. 比如用户 uin ,userPassword…

2013-03-18 15:24 · java · 评论(0) · Java

Spring Security Embadded LDAP

Reference : http://lengyun3566.iteye.com/blog/1358310 http://www.zytrax.com/books/ldap/ch5/index.html#step1-ldif http://krams915.blogspot.hk/2011/01/spring-security-mvc-using-embedded-ldap.html http://static.springsource.org/spring-security/site/docs/3.2.x/reference/ldap.html pom.xml,这里只写了 LDAP 的部分…

2013-03-15 09:28 · java · 评论(0) · Java · Spring Security · LDAP

Spring Data JPA,基础学习笔记.

http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/ [size=x-large]1. Spring 配置简述.[/size] [code="java"] org.e.test.**.model ${hibernate.dialect} ${hibernate.show_sql} true ......etc [/code] [size=x-large]2.DAO [/size] @Transactional 方面基本不变,该怎么用怎么用.. 假设已有 Entity 类 User [c…

2012-12-28 12:13 · java · 评论(2) · Java · Spring · JPA · Hibernate

Java 获取本机网卡地址.

[code="java"] public static List getAllMacAddresses() { List addresses = new ArrayList(); StringBuffer sb = new StringBuffer(); try { Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces(); while(networkInterfaces.hasMoreElements()) { NetworkInterface netInterface = networkInterfac…

2012-12-26 17:06 · java · 评论(0) · Java

Hibernate4 + ehcache.

开篇先写结论: Hibernate4 想使用 ehcache 时做二级缓存时,不使用 EHCache 提供的:[b]hibernate.cache.region.factory_class[/b] 请无视 EHcache 网站上的 document , 那是针对 Hibernate 3.X 的. Hibernate 4.X 有自己对其他 Cache 框架的支持. 具体修改的地方: 1.Hibernate Properties 配置. [code="java"] hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.E…

2012-12-24 19:40 · java · 评论(0) · 企业应用 · Hibernate