List Info

Thread: Create users using scripting language




Create users using scripting language
country flaguser name
Brazil
2007-04-03 07:49:17
Hi,

Somebody know how can I create users using a script language
like perl,
python or php? On windows I allways did this with vbscript
and ADSI. Is
there a similar way to do this?

Thanks,

Paulo Estrela

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users

RE: Create users using scripting language
country flaguser name
United States
2007-04-03 07:53:07
Yep, you can use batch scripting calling the ldap*
tools....

Aaron 

-----Original Message-----
From: fedora-directory-users-bouncesredhat.com
[mailto:fedora-directory-users-bouncesredhat.com] On Behalf Of
Paulo
Estrela - Suporte LabInfo UNIFACS
Sent: Tuesday, April 03, 2007 8:49 AM
To: General discussion list for the Fedora Directory server
project.
Subject: [Fedora-directory-users] Create users using
scripting language

Hi,

Somebody know how can I create users using a script language
like perl,
python or php? On windows I allways did this with vbscript
and ADSI. Is
there a similar way to do this?

Thanks,

Paulo Estrela

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users


Confidentiality Notice:
The information contained in this electronic message is
intended for the exclusive use of the individual or entity
named above and may contain privileged or confidential
information.  If the reader of this message is not the
intended recipient or the employee or agent responsible to
deliver it to the intended recipient, you are hereby
notified that dissemination, distribution or copying of this
information is prohibited.  If you have received this
communication in error, please notify the sender immediately
by telephone and destroy the copies you received.

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users

Re: Create users using scripting language
user name
2007-04-03 08:31:20
Bliss, Aaron wrote:
> Yep, you can use batch scripting calling the ldap*
tools....
>   
I strongly encourage you to use a scripting language not
only for 
user/group management but also for general server
management.  If you 
are already familiar with a scripting language, inquire
about LDAP 
support/modules. Most scripting languages have LDAP support
(perl, ruby, 
python, tcl, etc.).  If you're not already familiar with any
of these, I 
suggest using python and python-ldap.  It may seem daunting
at first, 
but once you realize the power and flexibility you can
achieve, you'll 
be glad you did, especially if you will be doing a lot of
LDAP and 
related system administration work.
> Aaron 
>
> -----Original Message-----
> From: fedora-directory-users-bouncesredhat.com
> [mailto:fedora-directory-users-bouncesredhat.com] On Behalf Of Paulo
> Estrela - Suporte LabInfo UNIFACS
> Sent: Tuesday, April 03, 2007 8:49 AM
> To: General discussion list for the Fedora Directory
server project.
> Subject: [Fedora-directory-users] Create users using
scripting language
>
> Hi,
>
> Somebody know how can I create users using a script
language like perl,
> python or php? On windows I allways did this with
vbscript and ADSI. Is
> there a similar way to do this?
>
> Thanks,
>
> Paulo Estrela
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-usersredhat.com
> https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users
>
>
> Confidentiality Notice:
> The information contained in this electronic message is
intended for the exclusive use of the individual or entity
named above and may contain privileged or confidential
information.  If the reader of this message is not the
intended recipient or the employee or agent responsible to
deliver it to the intended recipient, you are hereby
notified that dissemination, distribution or copying of this
information is prohibited.  If you have received this
communication in error, please notify the sender immediately
by telephone and destroy the copies you received.
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-usersredhat.com
> https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users
>   

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users

RE: Create users using scripting language
country flaguser name
United States
2007-04-03 08:31:48
As previously mentioned, you can script calls to
command-line utilities such as ldapmodify.  Or, if you
prefer, most languages these days have one or more
full-featured LDAP libraries.  Some of these libraries
depend on external LDAP binaries; these two do not:

Ruby Net/LDAP is a pure ruby LDAP library.  Adding a user
with it is shown here:
http://www.gemjack.com/gems/ruby-ne
t-ldap-0.0.4/classes/Net/LDAP.html#M000027

Perl Net::LDAP is a pure perl LDAP library.  Adding a user
with it is shown here:
http://search.cpan.org/~gbarr/perl-ldap/lib/Net
/LDAP.pod#SYNOPSIS

We use the former; for more than a year in production, it's
been bulletproof.

Justin



-----Original Message-----
From: fedora-directory-users-bouncesredhat.com on behalf of
Paulo Estrela - Suporte LabInfo UNIFACS
Sent: Tue 4/3/2007 6:49 AM
To: General discussion list for the Fedora Directory server
project.
Subject: [Fedora-directory-users] Create users using
scripting language
 
Hi,

Somebody know how can I create users using a script language
like perl,
python or php? On windows I allways did this with vbscript
and ADSI. Is
there a similar way to do this?

Thanks,

Paulo Estrela

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users


--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users

  
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )