No need to encode each bit as one character, just make your example
decimal "117", then Davide can just treat it as a number and do logical
bit operations on it instead of having to do string operations. The
reason is if there is 100 bits that's alot of 1's and 0's but as a
decimal number it is relatively small. Or make it Hex "75". 

Bill

>----------
>From:  DigitalPitstop[SMTP:[EMAIL PROTECTED]]
>Sent:  Wednesday, March 06, 2002 8:13 PM
>To:    [EMAIL PROTECTED]
>Subject:       [xmail] Re: CTRL permissions
>
>Or manage it similarly to the way the current aliases are handled, all in
>one file
>"domain"    "username"    "bit mask of permission"
>"here.com"    "billy"    "1110101"
>
>This way we just come up with what the various bits mean in the bit mask.
>
>
>
>----- Original Message -----
>From: "S�nke Ruempler" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, March 06, 2002 1:27 PM
>Subject: [xmail] Re: CTRL permissions
>
>
>> another suggestion:
>>
>> crtlaccounts/
>> ctrlaccounts/.tab for global account
>> ctrlaccounts/domain.com.tab for domain access
>>
>> maybe a
>> [EMAIL PROTECTED] for user access, but that makes no sence
>to
>> me, maybe simply for give users the possibilty to change their password.
>>
>> the tab files could be formatted in that way:
>>
>> "username"<tab>"encryptedpassword"<tab>"permissions"<newline>
>>
>> as permissions there would be many things possible, such as useradd,
>> userdel, .... (almost for each ctrl command) - and maybe to grant rights
>to
>> other users maybe.
>>
>> i am impressed by the mysql access privilege system, which has to do
>alomost
>> the same (database-based, tabled-based, ip-based, ... authentication). but
>> it is _very_ complex and would not be a few lines code :-).
>>
>> maybe someone merges mysql and xmail, then we had XMySil an everyone would
>> be happy :-P. no, just a joke.
>>
>>
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe xmail" in
>> the body of a message to [EMAIL PROTECTED]
>> For general help: send the line "help" in the body of a message to
>> [EMAIL PROTECTED]
>>
>
>-
>To unsubscribe from this list: send the line "unsubscribe xmail" in
>the body of a message to [EMAIL PROTECTED]
>For general help: send the line "help" in the body of a message to
>[EMAIL PROTECTED]
>
>
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to