LDAP useradd tool

Ryan Golhar golharam at umdnj.edu
Tue Dec 7 19:23:28 UTC 2004


Hmmm...looks like user tools are missing when using ldap authentication.
Various people have different forms of perl scripts to do this from what
I found on google.

Has anyone has tried modifying the useradd program to work with LDAP
just as passwd does?

Ryan


-----Original Message-----
From: Justin Crabtree [mailto:crabtrej at otc.edu] 
Sent: Tuesday, December 07, 2004 9:22 AM
To: golharam at umdnj.edu; General Red Hat Linux discussion list
Subject: Re: LDAP useradd tool


Ryan Golhar wrote:
> Is there a command-line tool similar to useradd available for ldap?
> 
> 

Depends on how similar you want it to be.  The openldap-clients package 
provides several command-line tools for managing a ldap server.  The 
ldapmodify command can be used to add entries, but it is not as simple 
as useradd.  When I need to add a user manually, I usually build a ldif 
file and use a shell script that uses ldapmodify to run it into the 
server.  Not the simplest process, but it works.

-- 
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533





More information about the redhat-list mailing list