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 Cianfrocca wrote:
> On 9/25/06, Rcmn 73 <rcmn73 / gmail.com> 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?


-- 
Posted via http://www.ruby-forum.com/.