Page 1 of 1 1
Topic Options
#121057 - 2004-06-10 11:42 PM NametoSid???
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
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,

Top
#121058 - 2004-06-11 12:17 AM Re: NametoSid???
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121059 - 2004-06-11 12:17 AM Re: NametoSid???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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
_________________________
!

download KiXnet

Top
#121060 - 2004-06-11 12:24 AM Re: NametoSid???
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121061 - 2004-06-11 12:43 AM Re: NametoSid???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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.
_________________________
!

download KiXnet

Top
#121062 - 2004-06-11 01:10 AM Re: NametoSid???
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121063 - 2004-06-11 01:15 AM Re: NametoSid???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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.
_________________________
!

download KiXnet

Top
#121064 - 2004-06-11 01:53 AM Re: NametoSid???
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
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

Top
#121065 - 2004-06-11 01:58 AM Re: NametoSid???
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121066 - 2004-06-11 01:58 AM Re: NametoSid???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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!
_________________________
!

download KiXnet

Top
#121067 - 2004-06-11 02:44 AM Re: NametoSid???
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
Thanks for the help guys!!
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.062 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org