Posts

Showing posts from May, 2013

Ignoring .vimrc file on startup

I have a customized vim file with some settings like this: set nohls set ai set tabstop=4 shiftwidth=4 softtabstop=4 expandtab This works great for my Python coding since tabs are converted to 4 spaces, etc. The problem I run into is when I need to copy and paste code that is already formatted, I end up with spaces run amok. Easy solution is to start up vim ignoring my .vimrc file, save the file, then reopening my file as normal. To ignore .vimrc on startup run: vim -u NONE filename Thanks to Evan Hahn and of course Google search :) UPDATE: A better solution, IMO, that was just sent to me. Start up vim and use :set paste.

Getting Greenplum to work with OS ldap.conf file

In greenplum_path.sh file, found in $MASTER_DATA_DIRECTORY, add: LDAPCONF=/etc/openldap/ldap.conf export LDAPCONF Restart your Greenplum server. Then, of course, you need the LDAP lines in your pg_hba.conf file. This is a line for a group role in your Greenplum server.  For a specific user role, just change +greenplum_group to a specific role name. hostssl  data  +greenplum_group  IPsAllowed/24  ldap ldapserver=ldapservername ldapport=ldapport ldaptls=1 ldapbinddn="your bind dn" ldapbindpasswd="bind account password" ldapsearchattribute="cn"  ldapbasedn="base DN" Finally, configure ldap.conf for your environment.