As a master of asking either obvious nor dumb questions :) ...
What is the most basic requirements and format for adding a user to SBBS with login account and ability to send recieve email via auth? To be specific, if I wanted to create an account for someone with a text editor instead of uedit, makeuser.js or by logging in as sysop and adding someone?
On 10-04-18 15:15, Digital Man wrote to Mortifis <=-
What is the most basic requirements and format for adding a user to SBBS with login account and ability to send recieve email via auth? To be specific, if I wanted to create an account for someone with a text editor instead of uedit, makeuser.js or by logging in as sysop and adding someone?
I'm not really sure what you mean by "with a text editor". The
Synchronet userbase (data/user.dat) is not really a text-editor
friendly file format. You should use one of the provided tools to add
user accounts.
Is makeuser.js scriptable? i.e. can you feed it information from a script? or is it purely interactive?
On 10-04-18 23:13, Digital Man wrote to Tony Langdon <=-
makeuser.js *is* a script. It's not interactive at all, it just accepts command-line parameters. It would be trivial to create another script
that read from another file in another format and either called makeuser.js with the appropriate command-line arguments or just used similar underlying JS code to create each user.
Re: Re: Adding Users via external means
By: Tony Langdon to Digital Man on Fri Oct 05 2018 03:09 pm
Is makeuser.js scriptable? i.e. can you feed it information from a script? or is it purely interactive?
makeuser.js *is* a script. It's not interactive at all, it just accepts command-line parameters. It would be trivial to create another script that read from another file in another format and either called makeuser.js with the appropriate command-line arguments or just used similar underlying JS code to create each user.
digital man
Re: Adding Users via external means
By: Mortifis to All on Thu Oct 04 2018 05:59 pm
As a master of asking either obvious nor dumb questions :) ...
What is the most basic requirements and format for adding a user to SBBS with login account and ability to send recieve email via auth? To be specific, if I wanted to create an account for someone with a text editor instead of uedit, makeuser.js or by logging in as sysop and adding someone?
I'm not really sure what you mean by "with a text editor". The Synchronet userbase (data/user.dat) is not really a text-editor friendly file format. You should use one of the provided tools to add user accounts.
digital man
my commandline line (using square brackets resolves other issues)
The only issue I am having now is using the -S 50 or any other level, returns * invalid security level
./jsexec makeuser.js [-P] [skittles] [-R] [ "Billy Ruhben"] [-H] [Billy] [-G] [M] [-B] [09/27/64] [-N] [billy@asmf-etrucker.com] [-S] [50]
Re: Adding Users via external means
By: Mortifis to All on Thu Oct 04 2018 05:59 pm
As a master of asking either obvious nor dumb questions :) ...
What is the most basic requirements and format for adding a user to SBBS with login account and ability to send recieve email via auth? To be specific, if I wanted to create an account for someone with a text editor instead of uedit, makeuser.js or by logging in as sysop and adding someone?
I'm not really sure what you mean by "with a text editor". The Synchronet userbase (data/user.dat) is not really a text-editor friendly file format. You should use one of the provided tools to add user accounts.
digital man
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
Re: Re: Adding Users via external means
By: Mortifis to echicken on Sat Oct 06 2018 13:27:26
./jsexec makeuser.js -P skittles -R "Billy Ruhben" -H Billy -G M -B 09/27/64 -N billy@asmf-etrucker.com -S 50
From makeuser.js:
usage: jsexec makeuser.js name [-param value] [...]
The very first argument is meant to be the new user's alias. (Their 'real name' is param -R, their 'chat handle' is param -H.) The script is trying to create a user with the alias '-P'.
* Invalid argument skittles
After grabbing the first argument (-P) for the alias, it moves on to the next argument, which should be one of the -P -R -H etc. param identifiers. It finds 'skittles' instead.
./jsexec makeuser.js Billy -P skittles -R "Billy Ruhben" -H Billy -G M -B 09/27/64 -N billy@asmf-etrucker.com -S 50
You probably don't need the -S 50 argument. I assume the security level will default to what's been set for new users in SCFG. (System -> New User Values
Level.) Unless you want to specify something other than that.
./jsexec makeuser.js -P skittles -R "Billy Ruhben" -H Billy -G M -B 09/27/64 -N billy@asmf-etrucker.com -S 50
* Invalid argument skittles
Running with [ ]:
Level.) Unless you want to specify something other than that.
Re: Re: Adding Users via external means
By: Mortifis to Digital Man on Sat Oct 06 2018 11:28:31
my commandline line (using square brackets resolves other issues)
Can you elaborate on the other issues?
If you really are using those square brackets in your command line, they are the likely source of your problem.
Are you seeing a bunch of '* Invalid argument' output?
The only issue I am having now is using the -S 50 or any other level, returns * invalid security level
./jsexec makeuser.js [-P] [skittles] [-R] [ "Billy Ruhben"] [-H] [Billy] [-G] [M] [-B] [09/27/64] [-N] [billy@asmf-etrucker.com] [-S] [50]
If it's trying to turn '[50]' into a number, that will not work.
Re: Re: Adding Users via external means
By: Mortifis to echicken on Sat Oct 06 2018 13:27:26
./jsexec makeuser.js -P skittles -R "Billy Ruhben" -H Billy -G M -B 09/27/64 -N billy@asmf-etrucker.com -S 50
From makeuser.js:
usage: jsexec makeuser.js name [-param value] [...]
The very first argument is meant to be the new user's alias. (Their 'real name' is param -R, their 'chat handle' is param -H.) The script is trying to create a user with the alias '-P'.
* Invalid argument skittles
After grabbing the first argument (-P) for the alias, it moves on to the next argument, which should be one of the -P -R -H etc. param identifiers. It finds 'skittles' instead.
Running with [ ]:
The square braces aren't helping. They're just leading to a different error message, which gives the illusion of making progress. :D
(When you see square braces around here in a command or config example, that's usually a stand-in for variable data. Replace the whole thing, including square brackets, with your chosen value.)
This amended version of your command should make a user with alias 'Billy':
./jsexec makeuser.js Billy -P skittles -R "Billy Ruhben" -H Billy -G M -B 09/27/64 -N billy@asmf-etrucker.com -S 50
You probably don't need the -S 50 argument. I assume the security level will default to what's been set for new users in SCFG. (System -> New User Values
Level.) Unless you want to specify something other than that.
---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
Yes, Tony was right in assuming what I was asking. I guess I just should have come out and said it the way I meant it :-P I was going to also ask what paramaters makeuser.js accepted. My intent is for my website running apache/php/mysql to be able to add users not only to that data base but also automatically add users to SBBS, so I was wondering what would be the minial requirement to add to SBBS, ie: name, alias, email, password, etc
Re: Re: Adding Users via external means
By: Mortifis to Digital Man on Sat Oct 06 2018 10:58 am
Yes, Tony was right in assuming what I was asking. I guess I just should have come out and said it the way I meant it :-P I was going to also ask what paramaters makeuser.js accepted. My intent is for my website running apache/php/mysql to be able to add users not only to that data base but also automatically add users to SBBS, so I was wondering what would be the minial requirement to add to SBBS, ie: name, alias, email, password, etc
Only the name (alias) is required:
The only issue I am having now is using the -S 50 or any other level, returns * invalid security level
my commandline line (using square brackets resolves other issues)
./jsexec makeuser.js [-P] [skittles] [-R] [ "Billy Ruhben"] [-H] [Billy] [-G] [M] [-B] [09/27/64] [-N] [billy@asmf-etrucker.com] [-S] [50]
Re: Re: Adding Users via external meansI will address the other issues in a separate post as they are more php cgi related issues
By: Mortifis to Digital Man on Sat Oct 06 2018 11:28:31
my commandline line (using square brackets resolves other issues)
Can you elaborate on the other issues?
If it's trying to turn '[50]' into a number, that will not work.
Re: Re: Adding Users via external means
By: Mortifis to Digital Man on Sat Oct 06 2018 11:28 am
The only issue I am having now is using the -S 50 or any other level, returns * invalid security level
You might have better luck using maksuser.exe instead. Same command-line syntax.
my commandline line (using square brackets resolves other issues)
./jsexec makeuser.js [-P] [skittles] [-R] [ "Billy Ruhben"] [-H] [Billy] [-G] [M] [-B] [09/27/64] [-N] [billy@asmf-etrucker.com] [-S] [50]
The sqaure brackets are... odd. Normally unnecessary.
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 28 |
Nodes: | 8 (0 / 8) |
Uptime: | 189:55:35 |
Calls: | 2,005 |
Calls today: | 2 |
Files: | 11,114 |
Messages: | 942,281 |