sliver
(Getting the hang of it)
2004-06-10 11:42 PM
NametoSid???

I see SidtoName to convert SIDS to a valid user name but I need to convert a username to a SID. I saw the @sid variable but this would not work in my case because I don't want the sid of the current logged in user but rather the sid of a user account that is read from a text file. Searched the forum and was not able to find anything. Does anyone know of such a script or utility or a way to do this in kix.

Thanks,


Les
(KiX Master)
2004-06-11 12:17 AM
Re: NametoSid???

First off, you posted to the wrong forum. This one is for posting scripts and there is no script in your post.

As for not finding anything, not sure what search terms you tried because I know for a fact there are UDFs posted cuz one of them GetSID() is mine.


LonkeroAdministrator
(KiX Master Guru)
2004-06-11 12:17 AM
Re: NametoSid???

there are some UDFs for this...
an example:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83409&page=27&view=collapsed&sb=3&o=all&fpart=1


Les
(KiX Master)
2004-06-11 12:24 AM
Re: NametoSid???

Interesting how close the subject is to Jooel's UDF name. Have to wonder what key words you searched on.

BTW, I like his UDF better than mine.


LonkeroAdministrator
(KiX Master Guru)
2004-06-11 12:43 AM
Re: NametoSid???

les, ja.
I searched with "name to sid" and your getsid() did not come up with results.
there came about 20 totally unrelated udfs along mine.
will have to think about improving the search engine on udf-collection...

what comes to which is more to like, dunno.
know that both use different methods and both have own limitations.


Les
(KiX Master)
2004-06-11 01:10 AM
Re: NametoSid???

LOL

I saw that too. I don't have the word "name" anywhere in my UDF. Maybe I should hide some keywords in meta tags.
Reducing the search to just "SID", yours shows up on page 3. Need to dive pretty deep to find mine.


LonkeroAdministrator
(KiX Master Guru)
2004-06-11 01:15 AM
Re: NametoSid???

ja, but instead of digging the board, I plan on doing a scoring search engine on the udflib.
although it's currently (iirc) just an perl script, probably will convert it to TCL and output some nice juice from it.

anyway, a normal scoring engine would not have helped in your udf case.
but it most likely would have put my UDF as a first result.


sliver
(Getting the hang of it)
2004-06-11 01:53 AM
Re: NametoSid???

Sorry about posting to the wrong forum....I searched for the following:

NameToSid
Sid and account
Sid and user
Sid and Username
Sid and User Name

The wierd thing about the UDF section is that i cant seem to find a direct link to he udf's themself...just to the forum...i'm probaby just missing it though


Les
(KiX Master)
2004-06-11 01:58 AM
Re: NametoSid???

Cannot find what you are looking for?

Pay close attention to:
Defaults to "Entire Phrase"
You can change it to:
And
...

forget "Entire Phrase" and go for "AND"

Also:
scroll down to the bottom of the page where you see Extra information and under that you will see a Show dropdown list with a Change button. Change the option to from all dates and click the Change button.


LonkeroAdministrator
(KiX Master Guru)
2004-06-11 01:58 AM
Re: NametoSid???

yep, you are.

anyways, if you want to really look at the UDFs, I insist you take a lookie at:
www.gwspikval.com/jooel/UDF

and dive in!


sliver
(Getting the hang of it)
2004-06-11 02:44 AM
Re: NametoSid???

Thanks for the help guys!!