Posted: Mon Feb 01, 2010 7:59 pm Post subject: Password Problem
I am using mc25c, and I keep having an issue with the players (me as well), having to have their password reset. I have logged in then in a few hours logged out, went to go log back in a few hours later, and it tells me I have the wrong password. It has happened about 20 times in the past month or so. I have #NOCRYPT = -DNOCRYPT in the makefile, so I am not sure why I am having this problem.
I am using mc25c, and I keep having an issue with the players (me as well), having to have their password reset. I have logged in then in a few hours logged out, went to go log back in a few hours later, and it tells me I have the wrong password. It has happened about 20 times in the past month or so. I have #NOCRYPT = -DNOCRYPT in the makefile, so I am not sure why I am having this problem.
'#NOCRYPT = -DNOCRYPT' in this case means little. You have it commented out so it's not doing anything. If you enable it you will need to reset all passwords for existing characters. Without seeing password in plain text it will make your debugging a little more challenging as you can't see what they are being changed to.
I'm curious as to where the server you are using is located. Also you may wish to grep for 'pwd' in your source to see in which functions it can be changed.
One possibility is that you have added to the char_data/pc_data structures and not cleanly compiled the source. This could throw off your data pointers...
Posted: Mon Feb 01, 2010 9:47 pm Post subject: Re: Password Problem
The mud is being hosted by vermaxhosting.com. I have not done anything with the char_data/pc_data, and I have done a clean compile. Not real sure what you mean by grep, but I have found some code for the password in void nanny, but I haven't changed any of the code for password at all.
Quote:
if ( fOld )
{
/* Old player */
write_to_buffer( d, " Please enter password: ", 0 );
write_to_buffer( d, echo_off_str, 0 );
d->connected = CON_GET_OLD_PASSWORD;
return;
}
else
{
/* New player */
if (check_newbiebanned(d))
{
write_to_buffer( d, "Your site is not allowed to create new chars on this mud
\r", 0 );
close_socket( d );
return;
}
xprintf( buf, "Reminder: If you have chosen a name which isn't suitable, you'll get deleted.
\r");
write_to_buffer( d, buf, 0 );
xprintf( buf, "Your sure that you want %s engraved on your tombstone (Y/N)? ", argument );
write_to_buffer( d, buf, 0 );
d->connected = CON_CONFIRM_NEW_NAME;
return;
}
break;
I'd start by examining your mc_crypt() function. It is not a standard function, personally I don't see much use for such a function beyond replacing the stock crypt() call for servers outside of the US.
Posted: Wed Feb 17, 2010 4:18 am Post subject: Re: Password Problem
Thank for the advice on the gdb, that helped a lot, it opened up some doors. We have removed the mc_crypt function, and and now just using crypt. Changed some things around in merc.h. Have ran a clean make, and all looks good. The only thing that was a downer is that I am going to have to reset everyones password, but if it fixes it, so be it. Going to test it tomorrow on the server, and hope for the best.
Thanks for the help.
Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum