-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: [Connection problem] Connecting without a domain name
PostPosted: Fri Mar 17, 2006 11:37 am 
Newbie

Joined: Fri Dec 30, 2005 5:55 am
Posts: 7
Location: Grenoble
Hi,
I have a connection problem with hibernate i got my hibernate.cfg.xml like that :

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
        <property name="hibernate.connection.password">password</property>
        <property name="hibernate.connection.url">jdbc:jtds:sqlserver://127.0.0.1:1433/database;domain=DOMAINNAME</property>
        <property name="hibernate.connection.username">login</property>
        <property name="hibernate.default_catalog">database</property>
        <property name="hibernate.default_schema">dbo</property>
        <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
                           <!-- Mapping files -->
        <mapping resource="systeme/sysutil/Sysutil.hbm.xml"/>
      </session-factory>
</hibernate-configuration>

My problem is that i would like to connect to this database, on a local computer, without any domain name, and still with a Windows authentification..
The computer has a name "TEST1" and a group "WORKGROUP", but no domain name...
The user is "toto" and his password is "password"
Is it possible to work like this ?
Thank you for the answer.
Michel

_________________
Mickey


Last edited by Mickey38 on Mon Mar 20, 2006 7:43 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 20, 2006 6:21 am 
Newbie

Joined: Fri Dec 30, 2005 5:55 am
Posts: 7
Location: Grenoble
Noone has an answer to my problem ????

_________________
Mickey


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 10:54 am 
Newbie

Joined: Fri Dec 30, 2005 5:55 am
Posts: 7
Location: Grenoble
My problem, in fact is I don't want to use an SQL authentification. I really need a windows authentification.
So if the PC is not linked to a network, and then doesn't have any domain name, what should i put in the connection.url line, in the hibernate.cfg.xml file ?????
Code:
<property name="hibernate.connection.url">jdbc:jtds:sqlserver://127.0.0.1:1433/database;domain=DOMAINNAME</property>

_________________
Mickey


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 12:34 pm 
Newbie

Joined: Fri Dec 30, 2005 5:55 am
Posts: 7
Location: Grenoble
I found.... i just use ODBC links...
If someone is interrested...

_________________
Mickey


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.