(no subject)

unsubscribe

i’m writing a script that will populate data into AD from a DB .I will
have to use net/ldap with the session credential.Once compiled i don’t
want to rebuild each time,and i don’t feel like put user/pwd in a text
file either.The ideal would be that the script use the credential from
the job that launched it(sched task in windows).I have been reading
net/ldap Rdoc and googling .But i might not use the right terms or maybe
i just don’t knoe the term i should look for.
THX

BTW i had to use this “empty” post because i had “APPLICATION ERROR”
each time i tried to creat new topic on any forums…

On 9/25/06, Rcmn 73 [email protected] wrote:

i’m writing a script that will populate data into AD from a DB .I will
have to use net/ldap with the session credential.Once compiled i don’t
want to rebuild each time,and i don’t feel like put user/pwd in a text
file either.The ideal would be that the script use the credential from
the job that launched it(sched task in windows).I have been reading
net/ldap Rdoc and googling .But i might not use the right terms or maybe
i just don’t knoe the term i should look for.
THX

I’m not sure what you’re trying to do. I don’t understand why you need
to
compile anything, for one thing. For another, you will need two
credentials,
not one, to do what I think you want to do: one to query the database,
and
one to bind to A/D. Are you having a problem because you don’t want to
store
these credentials in the Ruby script that will do the work?

I will compile it to make it more portable(*.exe).So i don’t have to
install ruby env on the server.
And yes you are right i don’t feel like storing mine or someone else
credential in a file.I don’t know if u know how Win$k3 task scheduler
work but basically u just point to the exe,bat,etc…Then u put the
credential(user and pwd) that will run that job.

Francis C. wrote:

On 9/25/06, Rcmn 73 [email protected] wrote:

i’m writing a script that will populate data into AD from a DB .I will
have to use net/ldap with the session credential.Once compiled i don’t
want to rebuild each time,and i don’t feel like put user/pwd in a text
file either.The ideal would be that the script use the credential from
the job that launched it(sched task in windows).I have been reading
net/ldap Rdoc and googling .But i might not use the right terms or maybe
i just don’t knoe the term i should look for.
THX

I’m not sure what you’re trying to do. I don’t understand why you need
to
compile anything, for one thing. For another, you will need two
credentials,
not one, to do what I think you want to do: one to query the database,
and
one to bind to A/D. Are you having a problem because you don’t want to
store
these credentials in the Ruby script that will do the work?

On 9/25/06, Rcmn 73 [email protected] wrote:

I will compile it to make it more portable(*.exe).So i don’t have to
install ruby env on the server.
And yes you are right i don’t feel like storing mine or someone else
credential in a file.I don’t know if u know how Win$k3 task scheduler
work but basically u just point to the exe,bat,etc…Then u put the
credential(user and pwd) that will run that job.

You’re planning to write Ruby code, and then compile it (somehow) into
an
exe file, and you’re doing this in order to get portability. Ok, I’ll
assume
you know what you’re doing.

If you want Net::LDAP to bind to A/D using an identity recovered from
its
runtime environment (presumably by using SASL/GSSAPI), that’s not
currently
supported, although this is the second request for it that I’ve had in a
week.

I don’t see how submitting creds to the w2k3 task scheduler is any more
secure than storing them in a file (apart from Microsoft saying it is).

Nothing to do with security.It’s to do with teamwork and avoid
exeptions.Pwd change every month in our environnement.One person will go
and change the pwd for the jobS.This system is used so i complie to it.
As far as compiling it’s what i have been doing with perl and it worked
for the past 3 years…But i haven’t look for a compiler for ruby so i
guess…
ho wait it seems i’m not the only one interrested
http://www.erikveen.dds.nl/rubyscript2exe/index.html.I didn’t tryed yet
hopefully it will work.
Francis C. wrote:

On 9/25/06, Rcmn 73 [email protected] wrote:

I will compile it to make it more portable(*.exe).So i don’t have to
install ruby env on the server.
And yes you are right i don’t feel like storing mine or someone else
credential in a file.I don’t know if u know how Win$k3 task scheduler
work but basically u just point to the exe,bat,etc…Then u put the
credential(user and pwd) that will run that job.

You’re planning to write Ruby code, and then compile it (somehow) into
an
exe file, and you’re doing this in order to get portability. Ok, I’ll
assume
you know what you’re doing.

If you want Net::LDAP to bind to A/D using an identity recovered from
its
runtime environment (presumably by using SASL/GSSAPI), that’s not
currently
supported, although this is the second request for it that I’ve had in a
week.

I don’t see how submitting creds to the w2k3 task scheduler is any more
secure than storing them in a file (apart from Microsoft saying it is).