Yet another problem with Windows 2003 Small Business AD

I get the following error:

2006.02.27 22:56:50 Connect Socket[addr=/192.168.1.230,port=3615,localport=5222]

2006.02.27 22:56:51 Trying to find a user’'s DN based on their username. sAMAccountName: dan, Base DN: DC=bercell,DC=local,OU=Users…

2006.02.27 22:56:51 Creating a DirContext in LdapManager.getContext()…

2006.02.27 22:56:51 Created hashtable with context values, attempting to create context…

2006.02.27 22:56:51 … context created successfully, returning.

2006.02.27 22:56:51 Starting LDAP search…

2006.02.27 22:56:51 Exception thrown when searching for userDN based on username ‘‘dan’’

javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-031006CC, problem 5012 (DIR_ERROR), data 0

]; remaining name ‘’’’

at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)

at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)

at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)[/b]

I have checked the boards, and have been trying to hack my way through this error for a few hours now, but I doesnt seem to be doing me any good. My config file is below, and I used an LDAP browser to make sure my values are correct.

I started getting this error when I changed

Before that I couldnt log in because it couldnt locate my user (probably because uid isnt for user names)



If anyone can give me some advise or where to start troubleshooting I would appreciate it.

Well I solved my own problem and figured I would repost the .xml file that worked.

I could have sworn I had already tried the above settings, but they are working fine now