server->dirType = LDAPDirectory;
nsresult DIR_InitServerWithType(DIR_Server * server, DirectoryType dirType){	DIR_InitServer(server);	if (dirType == LDAPDirectory)	{        server->columnAttributes = nsCRT::strdup(kDefaultLDAPColumnHeaders);		server->dirType = LDAPDirectory;		server->isOffline = PR_TRUE;		server->csid = CS_UTF8;		server->locale = nsnull;	}	else if (dirType == PABDirectory)	{        server->columnAttributes = nsCRT::strdup(kDefaultPABColumnHeaders);		server->dirType = PABDirectory;		server->isOffline = PR_FALSE;		server->csid = CS_UTF8;//		server->csid = INTL_GetCharSetID(INTL_DefaultTextWidgetCsidSel);		server->locale = nsnull; /* get the locale we are going to use with this AB *//*		server->locale = INTL_GetCollationKeyLocale(nsnull); */	}	return NS_OK;}