You might also want to take a look at
Perl for System Administration in regards to your question-as I recall, it contained some information about managing user account information and directory services, so there is a chance it might prove helpful as well.