Godwars Mud Resource  
  Login or Register
|  Home  |  Downloads  |  Forums  |  YAccount  |
Main Menu   
 
HomeHome  
    Home
Members  
    Groups
    Members List
    Private Messages
    Profile
Community  
    Forums
    Mud Reviews
    Search
    Surveys
Statistics  
    Statistics
    Top 10
Files & Links  
    Downloads
    Web Links
News  
    News
    Topics
Other  
    Shout Box
    Who-is-Where
    FAQ
    Donations
    Site Map
    Stories Archive
    Recommend Us
    Feedback
Arcade  
 
Whats new in Files Section   
 
  Files: 38
  Categories: 10
  Downloads: 4542
  Served: 4.55 GB

Latest Downloads

 1: Paladin
[Hits: 1 x]

 2: Cotn 2.5.1
[Hits: 12 x]

 3: Children of the Night 4.3
[Hits: 73 x]

 4: Age of Heroes 1.4
[Hits: 27 x]

 5: Age of Hereoes 1.3
[Hits: 34 x]

Most Downloaded

 1: Children of the Night 4.2
[Hits: 484 x]

 2: Godwars 1996
[Hits: 399 x]

 3: Utopia: Type Final
[Hits: 328 x]

 4: Spell Writer
[Hits: 259 x]

 5: Zarius's Dystopia 1.4
[Hits: 253 x]
 
Hacker Beware   
 
 You have been warned!
We have caught 36 shameful hackers.

NukeSentinel(tm) 2.6.01
 

http://www.mudfiles.com :: View topic - Password Problem
 
 http://www.mudfiles.com Forum IndexForum Index   SearchSearch   UsergroupsUsergroups   ProfileEdit your profile   MembersMembers   Private MessagesLog in, check messages  
 RanksRanks   StaffStaff   StatisticsStatistics   Board RulesBoard Rules   Forum FAQForum FAQ   Login / LogoutLog in 

Search for at
http://www.mudfiles.com Advanced Search


 
Recent Topics   Next 6 >>  
 Forum   Author   Replies   Last Post 
COTN 4.0 General Mud Discussion Jackierus 3 Mon Sep 06, 2010 6:45 am
Jackierus View latest post
Cotn 4.0 Mud Ads Xrakisis 5 Fri Sep 03, 2010 9:06 am
Jackierus View latest post
The Realm of War Mud Ads Tijer 2 Sun Aug 29, 2010 7:02 pm
Tijer View latest post
Testing something General Mud Discussion Tijer 1 Wed Aug 18, 2010 3:50 pm
Tijer View latest post
GodWars GUI Godwars Coding KaVir 4 Wed Aug 18, 2010 5:10 am
Jindrak View latest post
Locke and his ridiculous demands over on Mudconnector Announcements and News Tijer 6 Mon Aug 16, 2010 8:41 pm
Tijer View latest post

Password Problem

Post new topicReply to topicprinter-friendly view http://www.mudfiles.com Forum Index -> Godwars Coding
View previous topic :: View next topic
Author Message
Darkness




Joined: Nov 24, 2009
Posts: 7


Status: Offline
PostPosted: Mon Feb 01, 2010 7:59 pm Post subject: Password Problem Reply with quote

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.
Back to top
View user's profile Send private message
Jindrak




Joined: Oct 19, 2006
Posts: 273
Location: Cooperstown NY

Status: Offline
PostPosted: Mon Feb 01, 2010 9:23 pm Post subject: Re: Password Problem Reply with quote

Darkness wrote (View Post):
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...


Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Darkness




Joined: Nov 24, 2009
Posts: 7


Status: Offline
PostPosted: Mon Feb 01, 2010 9:47 pm Post subject: Re: Password Problem Reply with quote

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;

   case CON_GET_OLD_PASSWORD:
     #if defined(unix)
write_to_buffer( d, "
\r", 2 );
     #endif


if ( ch == NULL || (!IS_EXTRA(ch,EXTRA_NEWPASS) &&
   strcmp( argument, ch->pcdata->pwd ) &&
   strcmp( mc_crypt ( argument ),ch->pcdata->pwd )))
{
   write_to_buffer( d, " Wrong password.
\r", 0 );
   close_socket( d );
   return;
}

else if ( ch == NULL || (IS_EXTRA(ch,EXTRA_NEWPASS)  &&
   strcmp( mc_crypt ( argument ), ch->pcdata->pwd )))
{
   write_to_buffer( d, " Wrong password.
\r", 0 );
   close_socket( d );
   return;
}

write_to_buffer( d, echo_on_str, 0 );

if ( check_reconnect( d, GET_PC_NAME(ch), TRUE ) )
   return;

if ( check_playing( d, GET_PC_NAME(ch) ) )
   return;

if (ch->level > 1)
{
   xprintf(kav,ch->pcdata->switchname);
           free_char(d->character);
           d->character = NULL;
           fOld = load_char_obj( d, kav );
           ch   = d->character;

           if (IS_SET(ch->act, PLR_DENY))
           {
             if (ch->pcdata->denied <current_time>act, PLR_DENY);
               xprintf(buf, "Removing deny flag on %s.", ch->name);
               wiznet( buf, ch, NULL, WIZ_SECURE, 0, get_trust(ch) );
               log_string( LOG_SECURITY, log_buf);
             }
           }
}

if ( !IS_EXTRA(ch,EXTRA_NEWPASS) && strlen(argument) > 1) {
xprintf(kav,"%s %s",argument,argument);
do_password(ch,kav);}

if (ch->lasthost != NULL) free_string(ch->lasthost);
if (ch->desc != NULL && ch->desc->host != NULL)
{
       ch->lasthost = str_dup(ch->desc->host);
}
else
{
   ch->lasthost = str_dup("(unknown)");
}
strtime = ctime( &current_time );
strtime[strlen(strtime)-1] = '\0';
free_string(ch->lasttime);
ch->lasttime = str_dup( strtime );
xprintf( buf, "%s@%s has connected.",ch->name, ch->lasthost );
wiznet( buf, ch, NULL, WIZ_LINKS, 0, get_trust(ch) );
log_string( LOG_CONNECT, log_buf )
Back to top
View user's profile Send private message
Jindrak




Joined: Oct 19, 2006
Posts: 273
Location: Cooperstown NY

Status: Offline
PostPosted: Tue Feb 02, 2010 1:35 pm Post subject: Re: Password Problem Reply with quote

Darkness wrote (View Post):

The mud is being hosted by vermaxhosting.com.


Not quite the information I was looking for but easy enough to do a traceroute on it to find it's in the US.

Darkness wrote (View Post):

Not real sure what you mean by grep,


It's a system utility with that you NEED to familiarize yourself with.  Type 'man grep' in your shell account and/or Google it.

Darkness wrote (View Post):

strcmp( mc_crypt ( argument ),ch->pcdata->pwd )))


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.


Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Darkness




Joined: Nov 24, 2009
Posts: 7


Status: Offline
PostPosted: Wed Feb 17, 2010 4:18 am Post subject: Re: Password Problem Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic printer-friendly view http://www.mudfiles.com Forum Index -> Godwars Coding Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1


Jump to:  
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




Powered By: phpBB © 2001 - 2006 phpBB Group
subBlack Theme Conversion By: Shellz | Upgraded to v1.01 By: The Mortal

Ported to the phpBB Nuke module by coldblooded
Forums ©
User Info   
 
Good evening 
Anonymous



Register
Lost Password
Username
Password

 Online:   
Member(s):

Guest(s):
01. Guest
02. Guest
03. Guest
04. Guest
05. Guest
06. Guest

Most Ever Online:   
 Guest(s): 59
 Member(s): 0
 Total: 59

Forums Forums:   
 Posts: 2,228
 Topics: 401
 
Donations   
 

Find our site useful? Make a small donation to show your support.

 
Survey   
 

No Surveys!

 
New Downloads   
 
 
Who-is-Where   
 
 
Shout Box   
 
Shout History   
 
 
PHP Hosting

Spambot Killer
Site Map

[News Feed] [Forums Feed] [Downloads Feed] [Web Links Feed] [Validate robots.txt]

Copyright 2006 Godwars.net

PHP-Nuke Copyright © 2006 by Francisco Burzi.
All logos, trademarks and posts in this site are property of their respective owners, all the rest © 2006 by the site owner.
Powered by Nuke-Evolution.

This site is cached. Click here to update the cache.
[ Page Generation: 0.21 Seconds | Memory Usage: 12.55 MB | DB Queries: 130 ]

Do Not Click

:: subBlack phpbb2 style by spectre :: PHP-Nuke theme By: www.nukemods.com ::