Beta2K wrote:ãã> Ok, I'm trying to use e107 (a php based CMS) and having it pull specificã> aspects from SBBS's webserver, namly the messages bases. I'm trying toã> come upã> with a way of having a single login. I contemplated modifying userdat.cã> to add/remove users from a MySQL database as well as user.dat but thatã> looks likeã> way too much work. I've thought about doing a export from user.dat toã> MySQL once a hour or maybe more, but don't like that idea (want tighterã> integration.)ã> ã> Anyone got any other ideas, or some encouragement for taking on the moreã> difficult task of doing a synchronous update of user.dat and MySQL?ã> ã> thanks,ã> ã> ã> Betaã> ---ã> ? Synchronet ? Vertrauen ? Home of Synchronet ?
telnet://vert.synchro.netãyou can write a webservice with ssjs scripting or a simple auth serviceãlike : ããload ("sbbsdefs.js");ããvar usuario;ãvar pass;ãvar entrada;ãvar un; //user numberãã log("Conexion desde:" + client.ip_address + ":" + client.port);ã writeln ("+OK bbs server");ã entrada = truncsp(readln());ãã if (String(entrada).substr(0,4).toUpperCase() == "USER") {ã //obterner user y preguntar por passwordã usuario = String(entrada).substr(5).toUpperCase();ã entrada = truncsp(readln());ã if (String(entrada).substr(0,4).toUpperCase() == "PASS") {ã //obtener pass y comparaã pass = String(entrada).substr(5).toUpperCase();ã if (checklogin(usuario,pass)) {ã //login okã writeln ("+OK login ok");ã } ã else {ã log ("error en el login");ã writeln ("-ERR login error");ã }ã }ã else {ã //error de comandoã log("deberia ser PASS");ã writeln ("-ERR secuencia invalida");ã }ã }ã else {ã // comando invadlidoã log ("comando invalida no fue USER");ã writeln ("-ERR comando invalido");ã }ã ãfunction checklogin(user,pass) {ã un = system.matchuser(truncsp(user));ã if (un >0) {ã log ("usuario encontrado!");ã usuario = new User(un);ã if(usuario.security.password == pass){ã log ("password OK");ã return true;ã }ã else {ã log ("password error");ã return false;ã }ã }ã else {ã log ("error usuario no encotrando");ã return false;ã };ã} ããthis is a pop3-like auth service, you can put it in your service.ini as: ãã[auth]ãport=9999ãMaxclientS=10ãoptions = 0ãcommand=auth.jsãã-- ãDock Sud BBSã
http://bbs.docksud.com.arãtelnet://bbs.docksud.com.arãã---ã þ Synchronet þ Dock Sud BBS TLD 24 HS - www.docksud.com.arã