Mutt+LDAP

I use Mutt as email client since years and it works like a charm. When I’m working in a company  I wanted to be able to connect to the corporative address book an get the email address of the people just typing the first letter of the surname. Well, here it goes how I install and configure it:

1) Install lbdb package, and modify the files:

/etc/lbdb.rc

METHODS="m_ldap"
LDAP_NICKS="$NICK"

/etc/lbdb_ldap

%ldap_server_db = ( 
 'gsi' => ['ldap.server.com:$PORT_NUMBER',
 'cn=users,dc=$NIC,dc=de', 
 'mail cn givenname sn', 
 'mail cn givenname sn',
 '${mail}',
 '${givenname} ${sn}',
 '$NICK-L',
 '1']
);

2) install perl-ldap, nothing to configure.

3) start Mutt, and write the name/surname of the desired person, press CTRL+t  and you’ll a list of the matching email addresses.

Note: no references because I found the solution from more than 4 sources and none were got it right…

 

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s