Go to server.properties and where is says
OnlineMode=true
Change that to
OnlineMode=false
It tells the server not to communicate with Minecraft.net, Your friends can still join despite the server not being "Online". Also people with pirated copies (Not supporting) can join the game.