which free LDAP server to use?

I am trying to build a web application that will use an LDAP server on an Apache Tomcat 7.0 . Looking over the internet i have not find sufficient articles to justify why use one rather another server.

So I have turned to the more experienced guys here that have sufficient experience with more than one LDAP server.

My requirements are: To be free, easy to install and use (good gui) and sufficient API's so that i will be able to insert users, groups, perform lookups etc from a java based application. It should also provide a good level of security.

Thank you in advance for your attention

apache not accepting incoming connections from outside of localhost

I've booted up a CentOS server on rackspace and yum install httpd'd. Then services httpd start. So- just the bare, bare, default, basics.

I can access its IP address remotely over ssh (22) no problem, so there's no problem with the DNS or anything (I think...), but when I try to connect on port 80 (via a browser or something) I get connection refused.

From localhost, however, I can use telnet (80), or even lynx on itself and get served with no problem. From outside (my house, my school, a local coffee shop, etc...), telnet connects on 22, but not 80.

I use netstat -tulpn (<- I'm not going to lie, I don't understand the -tulpn part, but that's what the internet told me to do...) and see

tcp    0    0 :::80     :::*    LISTEN    -                   

as I believe I should. The httpd.conf says Listen 80.

I have services httpd restart'd many a time.

Honestly I have no idea what to do. There is NO way that rackspace has a firewall on incoming port 80 requests. I feel like I'm missing something stupid, but I've booted up a barebones server twice now and have done the absolute minimum to get this functioning thinking I had mucked things up with my tinkering, but neither worked.

Any help is greatly appreciated! (And sorry for the long winded post...)

EDIT I was asked to post the output of 'iptables -L'. So here it is:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

Sending HTTP Post request with SOAP action using org.apache.http

I'm trying to write a hard-coded HTTP Post request with SOAP action, using the org.apache.http api. My problem is I didn't find a way to add a request body (in my case - SOAP action). I'll be glad for some guidance.

import java.net.URI;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.client.RequestWrapper;
import org.apache.http.protocol.HTTP;

public class HTTPRequest
{
    @SuppressWarnings("unused")
    public HTTPRequest()
    {
        try {
            HttpClient httpclient = new DefaultHttpClient();
            String body="DataDataData";
            String bodyLength=new Integer(body.length()).toString();
            System.out.println(bodyLength);
//          StringEntity stringEntity=new StringEntity(body);

            URI uri=new URI("SOMEURL?Param1=1234&Param2=abcd");
            HttpPost httpPost = new HttpPost(uri);
            httpPost.addHeader("Test", "Test_Value");

//          httpPost.setEntity(stringEntity);

            StringEntity entity = new StringEntity(body, "text/xml",HTTP.DEFAULT_CONTENT_CHARSET);
            httpPost.setEntity(entity);

            RequestWrapper requestWrapper=new RequestWrapper(httpPost);
            requestWrapper.setMethod("POST");
            requestWrapper.setHeader("LuckyNumber", "77");
            requestWrapper.removeHeaders("Host");
            requestWrapper.setHeader("Host", "GOD_IS_A_DJ");
//          requestWrapper.setHeader("Content-Length",bodyLength);          
            HttpResponse response = httpclient.execute(requestWrapper);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Django 1.4 import error in urls invalid syntax

I have a django 1.4 project with 2 apps: RemoteStorage and WeShouldServer (that one was autocreated on project create and contains urls, settings, etc)

when I try to go to my admin page, I get this error:

SyntaxError at /admin
invalid syntax (views.py, line 33)

and the last line of the stacktrace is:

from RemoteStorage.views import refer 

I think it's a general import error, because I'm importing 3 methods from RemoteStorage.views, and when I change the order I still get an import error on whatever the first import is.

My urls.py:

from django.conf.urls import patterns, include, url
from RemoteStorage.views import refer
from RemoteStorage.views import check_referrals
from RemoteStorage.views import save_item


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'WeShouldServer.views.home', name='home'),
    # url(r'^WeShouldServer/', include('WeShouldServer.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^save-item/', save_item),
    url(r'^check-referrals/', check_referrals),
    url(r'^refer', refer),
)

my settings.py contains my app:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # Uncomment the next line to enable the admin:
    'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',
    **'RemoteStorage',**
)

my views.py:

# Create your views here.
from RemoteStorage.models import Item, Tag, Category, User, Referral
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
import json

def save_item(request):
        try:

                print request.GET
#               print request.user
                i = Item()
                i.user = User.objects.get_or_create(email=request.GET['user_email'])[0]
#       i.website = request.GET.get('website', "")
#       i.comment = request.GET.get('comment', "")
#       i.rating = request.GET.get('rating', "")
#       i.phone_numger = request.GET.get('phone number', "")
#               i.address = request.GET.get('address', "")      
                i.save()

                print i
        except Exception as e:
                print e.message()

        return HttpResponse()

def check_referrals(request):
        try:
                print request
                user = User.objects.get_or_create(email = request.GET.get("user_email", "")[0]
#       referrals = Referral.objects.filter(referred_to = user)
#       return HttpResponse(content = json.dumps(referrals))
                return HttpResponse()
        except Exception as e:
                print e.message()

def refer(request):
        print request
        user = User.objects.get_or_create(email = request.GET.get("user_email", "")[0]
        refer_to = request.GET.get("email_list", "")
        refer_to_list = refer_to.split(",")

        for rt in refer_to_list:
                r = Referral()
                r.data = request.GET.get("item_data", "")
                r.referred_by = user
                r.referred_to = rt
                r.save()
        return HttpResponse()

I can't figure out what's wrong!

Django 1.4 import error in urls invalid syntax

I have a django 1.4 project with 2 apps: RemoteStorage and WeShouldServer (that one was autocreated on project create and contains urls, settings, etc)

when I try to go to my admin page, I get this error:

SyntaxError at /admin
invalid syntax (views.py, line 33)

and the last line of the stacktrace is:

from RemoteStorage.views import refer 

I think it's a general import error, because I'm importing 3 methods from RemoteStorage.views, and when I change the order I still get an import error on whatever the first import is.

My urls.py:

from django.conf.urls import patterns, include, url
from RemoteStorage.views import refer
from RemoteStorage.views import check_referrals
from RemoteStorage.views import save_item


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'WeShouldServer.views.home', name='home'),
    # url(r'^WeShouldServer/', include('WeShouldServer.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^save-item/', save_item),
    url(r'^check-referrals/', check_referrals),
    url(r'^refer', refer),
)

my settings.py contains my app:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # Uncomment the next line to enable the admin:
    'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',
    **'RemoteStorage',**
)

my views.py:

# Create your views here.
from RemoteStorage.models import Item, Tag, Category, User, Referral
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
import json

def save_item(request):
        try:

                print request.GET
#               print request.user
                i = Item()
                i.user = User.objects.get_or_create(email=request.GET['user_email'])[0]
#       i.website = request.GET.get('website', "")
#       i.comment = request.GET.get('comment', "")
#       i.rating = request.GET.get('rating', "")
#       i.phone_numger = request.GET.get('phone number', "")
#               i.address = request.GET.get('address', "")      
                i.save()

                print i
        except Exception as e:
                print e.message()

        return HttpResponse()

def check_referrals(request):
        try:
                print request
                user = User.objects.get_or_create(email = request.GET.get("user_email", "")[0]
#       referrals = Referral.objects.filter(referred_to = user)
#       return HttpResponse(content = json.dumps(referrals))
                return HttpResponse()
        except Exception as e:
                print e.message()

def refer(request):
        print request
        user = User.objects.get_or_create(email = request.GET.get("user_email", "")[0]
        refer_to = request.GET.get("email_list", "")
        refer_to_list = refer_to.split(",")

        for rt in refer_to_list:
                r = Referral()
                r.data = request.GET.get("item_data", "")
                r.referred_by = user
                r.referred_to = rt
                r.save()
        return HttpResponse()

I can't figure out what's wrong!

Open project without frontend_dev.php

I created project in Symfony 1.4 and upload on FTP. If i open http://mysite.com/frontend_dev.php/login or http://mysite.com/frontend_dev.php/manage then all working OK, but if i open http://mysite.com/login or http://mysite.com/manage then i have error:

Not Found

The requested URL /login was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Why? What i must change in Symfony or Apache?