Hi All, I am attempting to write a php script to add users into openldap.. ALl is working except for the uid. I need some code to check for the last used uid, add 1 to it, then use that for the uid.. ANyone have some code that will accomplish that. Or does anyone have a better place to point me? Thanks... Jim