Monthly Archives: June 2013

Manage LDAP entries with ruby

Say you want to add an attribute to some entries. Here’s a sam­ple: require ‘net/ldap’ # http://rdoc.info/gems/net-ldap/frames base = ‘ou=people,dc=my,dc=domain,dc=com’ fil­ter = ‘(objectCLass=posixAccount)’ ldap = Net::LDAP.new ldap.host = ‘local­host’ ldap.port = 389 ldap.auth ‘cn=admin,dc=my,dc=domain,dc=com’, “passs­word” if ldap.bind ldap.search( :base => base, … Con­tin­ue read­ing

Share
Posted in OpenLDAP, Ruby | Comments Off on Manage LDAP entries with ruby

Apache userdirs from LDAP

Debian Squeeze Some­thing like the fol­low­ing should be enough. I had no trou­ble at all. LDAP­Pro­to­colVer­sion 3 LDA­PUserDirUseTLS off LDA­PUserDirServ­er ldap1.my.domain.com ldap2.my.domain.com LDA­PUserDirD­NIn­fo cn=bind-user,dc=my,dc=domain,dc=com apass­word LDA­PUserDirBaseDN ou=people,dc=my,dc=domain,dc=com LDA­PUserDirFil­ter “(&(uid=%u)(objectClass=posixAccount))” LDA­PUserDir public_html LDA­PUserDirCa­cheTime­out 31104000 The mod_ldap_userdir home­page is in github, the direc­tives … Con­tin­ue read­ing

Share
Posted in Debian, OpenLDAP | Comments Off on Apache userdirs from LDAP

Configuring CentOs 6.4 with iSCSI, Multipathing, OpenLDAP and NFS

yum install wget mlo­cate ntp log­watch epel and rpm­forge repos installed. dis­abled by default. Default repos always take prece­dence over epel, which always takes prece­dence over rpm­forge, http://fedoraproject.org/wiki/EPEL/FAQ wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6–8.noarch.rpm rpm -Uvh epel-release-6–8.noarch.rpm http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01 wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3–1.el6.rf.x86_64.rpm yum install yum-utils git … Con­tin­ue read­ing

Share
Posted in CentOS, OpenLDAP | Comments Off on Configuring CentOs 6.4 with iSCSI, Multipathing, OpenLDAP and NFS