Forum: Ruby re: creating users with LDAP

Posted by Marcelo G. (marcelo_g84)
on 2012-11-15 22:55
You are certainly not obligated to answer any postings but I was
wandering why my posting from yesterday has zero replies and postings
added later than mine have plenty of replies.
Just wandering....
Thanks,
Posted by Eliezer Croitoru (Guest)
on 2012-11-15 23:36
(Received via mailing list)
Maybe because nobody have a clue?
I have tried to add users into LDAP using the common tools and it was 
hell.
so my recommendation is to make sure you are LDAP expert.
Try to do the task with regular and common tools of openLDAP tools and
later try to use ruby LDAP.
ruby-net-ldap is since 2006
net-ldap 0.3.1 is up to 2012 and have a site :http://rubyldap.com/
activeldap 3.2.2 is up to 2012 and has a
site:http://ruby-activeldap.rubyforge.org/activeldap/en...
ruby-ldap  0.9.12 is old and up to 2011.

so Just pick and try to do your best.

Regards,
Eliezer
Posted by Linda Metcalfe (lmc)
on 2012-11-16 17:01
Marcelo G. wrote in post #1084636:
> You are certainly not obligated to answer any postings but I was
> wandering why my posting from yesterday has zero replies and postings
> added later than mine have plenty of replies.
> Just wandering....
> Thanks,

If you are working in a Windows environment, you might have better luck
with the win32ole gem.  Then you can do something similar to this after
initializing the LDAP connection:

require "win32ole"

user = ldapConnection.Create("User", "cn=Last Name, First Name")
user.sAMAccountName = "someLogin"
user.SetInfo
Posted by Marcelo G. (marcelo_g84)
on 2012-11-16 20:26
Linda Metcalfe wrote in post #1084761:
> Marcelo G. wrote in post #1084636:
>> You are certainly not obligated to answer any postings but I was
>> wandering why my posting from yesterday has zero replies and postings
>> added later than mine have plenty of replies.
>> Just wandering....
>> Thanks,
>
> If you are working in a Windows environment, you might have better luck
> with the win32ole gem.  Then you can do something similar to this after
> initializing the LDAP connection:
>
> require "win32ole"
>
> user = ldapConnection.Create("User", "cn=Last Name, First Name")
> user.sAMAccountName = "someLogin"
> user.SetInfo


Thanks for both replies....
I am just wandering if ruby/ldap is a major headache to implement. In 
which case, I will look at other choices.
Posted by Eliezer Croitoru (Guest)
on 2012-11-19 02:05
(Received via mailing list)
The ative LDAP code in ruby for the last year is the activeLDAP.
If you want to use it you better learn to use active records with the
basic concepts which can be tricky to understand.

If you do have other language that you do know and understand how to use
with LDAP just use it.

Regards,
Eliezer
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.