[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Programmatically creating users
- To: openldap-technical@openldap.org
- Subject: Programmatically creating users
- From: Juan Pablo Romero Méndez <jpablo.romero@gmail.com>
- Date: Wed, 1 Dec 2010 12:52:20 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=q/oXYvbLpVP7V24y8Xg1yi0GTZAxsfl0KgFoy7ECA9c=; b=acEUiK3/oHpfVsGG6Y962HCwFjwSYxEYp6CPPITsDZszyGsFRWkXhep7TGtjFiUxzP R1+H5+Oz91wj9PQNXIBRUjaqoYP7b4SPEhiXpMm9X63FThG7z1GWUshOooisCLL9iCbH mI5XP2N6lPGjVlkiysIv+tDFD8JCmYplnXD40=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qdvrHyK4bmgPosb60gmIV10jzYSXzcVtDQ0NHysUBAfGec1H41NSuHieb4dilkmruz 8GxOj/Wm2T7qcgaudPkZttWb8GOrklTKdfnsUHJVi+Ra7qBZnnbpnsul2JuL25ZAEJH2 mfAy+LeLGGqitFywokdYsO9RPwA1uy9mYP0HU=
Hello,
I'm trying to programmatically call useradd to create an ldap user on opensuse 11.2.
The problem is that calling
useradd -m --service ldap -D "cn=Administrator,dc=tkm,dc=com,dc=mx" testuser
requests the ldap admin password in a way which I find difficult to handle programmatically.
I thought that setting rootbinddn in /etc/ldap.conf and the password in /etc/ldap.secret would prevent useradd to ask the password but this is not the case.
Is it possible to accomplish this? (i.e. configure useradd/passswd to not to ask passwords in the command line?)
Regards,
Juan Pablo