In my quest to start using LDAP for authentication, we realised that using it to create a phone directory would be easy. Heres the example in Cold Fusion using CFLDAP.
Remember to set the correct name for your LDAP server, a valid username and password on your domain, and make sure you get DC start correct. e.g. if your domain is domain.com set it to be DC=domain,DC=com