niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD
FreeBSD 5.3 & XDMCP
Post new topic   Reply to topic Page 1 of 1 [9 Posts] View previous topic :: View next topic
Author Message
Pavel.Sukortsev
*nix forums beginner


Joined: 03 Apr 2005
Posts: 18

PostPosted: Fri Feb 11, 2005 5:22 am    Post subject: FreeBSD 5.3 & XDMCP Reply with quote

I have install FreeBSD 5.3 and xorg. X server on FreeBSD itself and xdm
working fine. For sure I am commented line in xdm-config with
DisplayManager.requestPort 0 and switched xdm on in /etc/ttys.



But when I trying to make a connection from another windows machine I am
receiving a message "XDMCP: Manager unwilling, declaring session dead."
Under windows I am using X-WinPro 5.2 and it's working well with solaris.
Where can be a problem?



There is a log of messages between FreeBSD (192.168.0.1) and X-WinPro :



1: 11/0xb.<@@@XdmcpOptions(3,(-class),1)>

2: 11/0xb.<@@@XdmcpOptions(3,(-displayID),1)>

3: 11/0xb.<@@@XdmcpRegManDispID('MIT-unspecified-961026',22)>

4: 11/0xb.<@@@XdmcpOptions(3,(-query),1)>

5: 11/0xb.<@@@get_manager_by_name(3,(192.168.0.1),2)>

6: 0/0.<@@@access>AccessUsingXdmcp()>

7: 0/0.<@@@XdmcpOptions(3,(-cookie),1)>

8: 0/0.<@@@access>DefineSelf(0)>

9: 50374848/0x300a8c0.<@@@access>ConvertAddr(0x2?=2(0x204),(16),)>

10: 0/0.<@@@XdmcpRegConn(0,0x300a8c0,0x4)>

11: 0/0.<@@@access>ResetHosts(0)>

12: 0/0.<@@@XdmcpInit() st=0>

13: 0/0.<@@@xdmauth>XdmAuthentInit('xdmkey',6)>

14: 0/0.<@@@XdmcpRegisterAuthent('XDM-AUTHENTICATION-1',,,8..)>

15: 0/0.<@@@XdmcpRegisterAuthorizations>

16: 0/0.<@@@auth>RegisterAuthorization()>

17: 0/0.<@@@XdmcpRegAuthor('MIT-MAGIC-COOKIE-1',1Cool>

18: 0/0.<@@@XdmcpRegAuthor('XDM-AUTHORIZATION-1',19)>

19: 0/0.<@@@XdmcpRegAuthor('XC-QUERY-SECURITY-1',19)>

20: 0/0.<@@@XdmcpRegDispCl('MIT-unspecified',15)>

21: 0/0.<@@@access>AccessUsingXdmcp()>

22: 0/0.<@@@get_xdmcp_sock()>

23: 0/0.<@@@send_packet()>

24: 0/0.<@@@send_query_msg:AnN[i]=20/'XDM-AUTHENTICATION-1'>

25: 0/0.<@@@send_query_msg() opc=2, len=23, AnNsn=1>

26: 0/0.<@@@send_query_msg:MA=0x100a8c0>

27: 0/0.<@@@timeout()>

28: 0/0.<@@@send_packet()>

29: 0/0.<@@@send_query_msg:AnN[i]=20/'XDM-AUTHENTICATION-1'>

30: 0/0.<@@@send_query_msg() opc=2, len=23, AnNsn=1>

31: 0/0.<@@@send_query_msg:MA=0x100a8c0>

32: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>

33: 0/0.<@@@receive_packet(0x100a8c0'192.168.0.1')>

34: 0/0.<@@@receive_packet()/UNWILLING>

35: 0/0.<@@@XdmcpFatal(Manager unwilling,4992564)>

36: 0/0.<@@@XdmcpDeadSession(Manager unwilling)>

37: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>

38: 11/0xb.<@@@receive_packet(0x100a8c0'192.168.0.1')>

39: 11/0xb.<@@@receive_packet()/UNWILLING>

40: 11/0xb.<@@@XdmcpFatal(Manager unwilling,4992564)>

41: 11/0xb.<@@@XdmcpDeadSession(Manager unwilling)>

42: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>

43: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>

44: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>

45: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>

46: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>

47: 3/0x3.<@@@XdmcpWakeupHandler(0,1,0x2)>
Back to top
Adam
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 251

PostPosted: Fri Feb 11, 2005 7:59 am    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

Pavel Sukortsev wrote:

Quote:
I have install FreeBSD 5.3 and xorg. X server on FreeBSD itself and xdm
working fine. For sure I am commented line in xdm-config with
DisplayManager.requestPort 0 and switched xdm on in /etc/ttys.



But when I trying to make a connection from another windows machine I am
receiving a message "XDMCP: Manager unwilling, declaring session dead."
Under windows I am using X-WinPro 5.2 and it's working well with solaris.
Where can be a problem?

Try typing "xhost +" on the FreeBSD machine
Back to top
Pavel.Sukortsev
*nix forums beginner


Joined: 03 Apr 2005
Posts: 18

PostPosted: Fri Feb 11, 2005 3:16 pm    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

"Martin" <nospam@example.com> wrote in message
news:110osv0gu3qh3ca@news.supernews.com...
Quote:
Pavel Sukortsev wrote:

I have install FreeBSD 5.3 and xorg. X server on FreeBSD itself and xdm
working fine. For sure I am commented line in xdm-config with
DisplayManager.requestPort 0 and switched xdm on in /etc/ttys.



But when I trying to make a connection from another windows machine I am
receiving a message "XDMCP: Manager unwilling, declaring session dead."
Under windows I am using X-WinPro 5.2 and it's working well with
solaris.
Where can be a problem?

Try typing "xhost +" on the FreeBSD machine

I tried with out success. Nothing changed in behave.
Back to top
Pavel.Sukortsev
*nix forums beginner


Joined: 03 Apr 2005
Posts: 18

PostPosted: Fri Feb 11, 2005 5:58 pm    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

"Pavel Sukortsev" <pavel.sukortsev@do.not.spam.me> wrote in message
news:cuilot$i0p$1@aken.eed.ericsson.se...
Quote:

"Martin" <nospam@example.com> wrote in message
news:110osv0gu3qh3ca@news.supernews.com...
Pavel Sukortsev wrote:

I have install FreeBSD 5.3 and xorg. X server on FreeBSD itself and
xdm
working fine. For sure I am commented line in xdm-config with
DisplayManager.requestPort 0 and switched xdm on in /etc/ttys.



But when I trying to make a connection from another windows machine I
am
receiving a message "XDMCP: Manager unwilling, declaring session
dead."
Under windows I am using X-WinPro 5.2 and it's working well with
solaris.
Where can be a problem?

Try typing "xhost +" on the FreeBSD machine

I tried with out success. Nothing changed in behave.


Ok, after adding a star in Xaccess file the behavior changes. Right now I
can choose FreeBSD machine on which I can log in. But after choosing right
one, in the log, I have a massage:

Xdmcp: decline messge 'XDM has no authentication key'.

What should I do now? Can anybody help?
Back to top
Jason Bourne
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 135

PostPosted: Sat Feb 12, 2005 6:09 am    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

[snip]
Quote:


Xdmcp: decline messge 'XDM has no authentication key'.

What should I do now? Can anybody help?


Greetings:

I am using xdmcp on a 'BSD 4.10 box. The previously mentioned two
changes you made are correct. In the home directories of the couple of
users I log in as I have both a ".xinitrc" and a ".xsession" file which
basically both contain "exec fluxbox" line to start the Window manager. I
am using Cygwin X on Windows XP to view the fluxbox wm running on the
other machine.

This is the line from my /etc/ttys:

ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure

Here is the relevant portion of my /etc/pam.conf:

# Don't break startx
xserver auth required pam_permit.so

# XDM is difficult; it fails or moans unless there are modules for each
# of the four management groups; auth, account, session and password.
xdm auth required pam_unix.so
xdm account required pam_unix.so try_first_pass
xdm session required pam_deny.so
xdm password required pam_deny.so

As I said, this is 4.x and I don't have experience with 5.x. I would
imagine it should work the same way in either case. One thing I forgot to
mention is that I am using X.org instead of XFree86. Hope it helps.

-Jason
Back to top
Pavel.Sukortsev
*nix forums beginner


Joined: 03 Apr 2005
Posts: 18

PostPosted: Sat Feb 12, 2005 9:36 am    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

Quote:
Greetings:

I am using xdmcp on a 'BSD 4.10 box. The previously mentioned two
changes you made are correct. In the home directories of the couple of
users I log in as I have both a ".xinitrc" and a ".xsession" file which
basically both contain "exec fluxbox" line to start the Window manager. I
am using Cygwin X on Windows XP to view the fluxbox wm running on the
other machine.

This is the line from my /etc/ttys:

ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure

Here is the relevant portion of my /etc/pam.conf:

# Don't break startx
xserver auth required pam_permit.so

# XDM is difficult; it fails or moans unless there are modules for each
# of the four management groups; auth, account, session and password.
xdm auth required pam_unix.so
xdm account required pam_unix.so try_first_pass
xdm session required pam_deny.so
xdm password required pam_deny.so

As I said, this is 4.x and I don't have experience with 5.x. I would
imagine it should work the same way in either case. One thing I forgot to
mention is that I am using X.org instead of XFree86. Hope it helps.

-Jason

I did like you said - now result. I think the main problem is that I can not
get a login prompt under X from local machine.
Back to top
Pavel.Sukortsev
*nix forums beginner


Joined: 03 Apr 2005
Posts: 18

PostPosted: Sat Feb 12, 2005 12:04 pm    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

[skip]
Quote:

As I said, this is 4.x and I don't have experience with 5.x. I would
imagine it should work the same way in either case. One thing I forgot
to
mention is that I am using X.org instead of XFree86. Hope it helps.

-Jason

I did like you said - now result. I think the main problem is that I can
not
get a login prompt under X from local machine.


This is sounds strange but when I have moved from Xorg to Xfree86 all works

perfectly. This means thre is something wrong with Xorg xdm configuration.
Back to top
Jason Bourne
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 135

PostPosted: Sat Feb 12, 2005 1:20 pm    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

Pavel Sukortsev wrote:
[snip]
Quote:
I did like you said - now result. I think the main problem is that I can
not get a login prompt under X from local machine.

That seems weird - I get login both on the local and remote.
(I'm using X.org also - not XFree86, per below comments)

Quote:

This is sounds strange but when I have moved from Xorg to Xfree86 all works
perfectly. This means thre is something wrong with Xorg xdm configuration.



I'm not totally suprised by that. Building X.org was a little convoluted.
IIRC there were some dependencies that required building XFree86-libs and
its version of imake first, I think maybe it was to get libXft built. Then
the 2 or 3 XFree86 ports had to be removed and the following placed in
/etc/make.conf: X_WINDOW_SYSTEM=xorg prior to building X.org. Once I got
to that stage it built, installed,and works just fine. But IIRC the
version of imake is different for X.org and conflicts with the one used by
XFree86. All of this was covered in /usr/ports/UPDATING. But it is good to
hear that you got it working. Good Luck to you!

-Jason
Back to top
Pavel.Sukortsev
*nix forums beginner


Joined: 03 Apr 2005
Posts: 18

PostPosted: Sat Feb 12, 2005 7:09 pm    Post subject: Re: FreeBSD 5.3 & XDMCP Reply with quote

"Jason Bourne" <j_bourne_treadstone@hotmail.com> wrote in message
news:wpudnePhn5M0jZPfRVn-uA@rcn.net...
Quote:
Pavel Sukortsev wrote:
[snip]
I did like you said - now result. I think the main problem is that I can
not get a login prompt under X from local machine.

That seems weird - I get login both on the local and remote.
(I'm using X.org also - not XFree86, per below comments)


This is sounds strange but when I have moved from Xorg to Xfree86 all
works
perfectly. This means thre is something wrong with Xorg xdm
configuration.



I'm not totally suprised by that. Building X.org was a little convoluted.
IIRC there were some dependencies that required building XFree86-libs and
its version of imake first, I think maybe it was to get libXft built. Then
the 2 or 3 XFree86 ports had to be removed and the following placed in
/etc/make.conf: X_WINDOW_SYSTEM=xorg prior to building X.org. Once I got
to that stage it built, installed,and works just fine. But IIRC the
version of imake is different for X.org and conflicts with the one used by
XFree86. All of this was covered in /usr/ports/UPDATING. But it is good to
hear that you got it working. Good Luck to you!

-Jason

It is funny but Xfree86 do not allow me to login either on the server or
from local machine after installing KDE 3.3.0 package. With Xorg it was
working. It seems that I have install back Xorg and forget about X console
on local windows machine.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 11:00 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Berkeley db XML & FreeBSD mo Berkeley DB 0 Thu Jul 20, 2006 9:15 pm
No new posts Squid 2.6 WCCPv2 and FreeBSD Carlos Filipe Squid 0 Thu Jul 20, 2006 7:48 pm
No new posts freebsd with apache, php and mysql Yves Savoie FreeBSD 5 Wed Jul 19, 2006 11:39 pm
No new posts problems with drac for exim on freebsd Sebastian Inacker Exim 2 Wed Jul 19, 2006 3:36 pm
No new posts Mplayer-gtk-esound 0.99.8 cannot compile on FreeBSD 4.11 Young Coot FreeBSD 8 Tue Jul 18, 2006 7:21 pm

Bank Credit Cards | Mortgages | Cell Phones | Mortgages | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2310s ][ Queries: 16 (0.1137s) ][ GZIP on - Debug on ]