Page 1 of 1
Appearing offline and local user alias
Posted: Tue Oct 25, 2005 6:16 pm
by livid7
Hello,
I am in the process of setting up and deploying AdiumX to about 15-20 people. I have run into 2 problems.
1. when the users log in they can't see the users that are in their contact list nor can other users see them. where/how is this status set? It seems that it is set on the server side of things in the user.xml file, but it always goes to 'offline' and doesn't seem to change when I set to available. any ideas??? even when I initiate contact and we exchange keys, etc, we can not see each other. the only way I have got it to work is to delete the user and re-add them to the contact list.
2. I cannot seem to figure out where the current user's alias gets set. I have found that in the /app support/adium/users/default/ByObject that people in your contact list have their alias's set there, but that doesn't seem to be where the current user's alias gets set. btw, I did test it by adding the current user's
jabber.user@server.com.plist and setting the alias there and it didn't work. Anyone know where I can set the local users alias?
Let me know if you need any clarification on either of these issues! Thanks in advance!!!
-Alex
Posted: Tue Oct 25, 2005 8:56 pm
by livid7
ok...so I still haven't figured out how to do exactly what I want, but I did find this -
http://linuxgazette.net/112/tomar.html - maybe I should start posting to the jabber forum instead of here for some of these issues...but I would still love to know where the client's own alias is defined so I don't just have to create an identity that has a blank alias and have the users change it themselves...
Posted: Tue Oct 25, 2005 10:45 pm
by livid7
I spend lots of time talking to myself. i'm a little crazy...;)
ok...So has anyone used a roster.xml with Mac OS X server? there are some references to the roster in the jabber.xml in /etc/jabber directory but it doesn't give me a clean place to point to a roster.xml file nor is it very apparent where the roster.xml is by default. I have tried to do a locate and find it to no avail.
any other Mac OS X sys admin here ever roll this out with default buddy lists, etc?
oh yea, where the hell do you set the alias for the user and not the contact. (how could I not sneak this in for a third time;)
thanks,
alex
Posted: Wed Oct 26, 2005 11:11 am
by evands
Jabber has a 'subscription' thing -- you have to authorize people to see your status and thereby give them permission to subscribe to being notified of your status. Probably needs to be setup somewhere.
Local account alias: Preferences->Accounts-><the account>->Alias
Posted: Wed Oct 26, 2005 6:05 pm
by livid7
Evands,
Thanks for the tip on subscriptions! <edit> could that be defined on the server side in the user.xml files? the subscription='both'? it seems that a roster file would be kind of useless if they had to somehow subscribe to each other after they are already in the contact list...</edit>
I can manually go and change the user name in the preference/account window but it must be set somewhere? do you know what file it references to fill that field?
Thanks!
Alex
<edit> I tried configging the jabber.xml config file with a roster in it and it wouldn't start back up. The jabber server would not start back up...I am going to try and tweak the file a bit more today. do you know how roster's work with the subscription thing? </edit>
Posted: Thu Oct 27, 2005 10:06 pm
by livid7
ok...stopping the jabber server while editing the user.xml files on the server and setting subscription='both' lets users see each other without having to go through the extraneous steps of setting the users up.
now I just have to figure out where we can set the local user's alias...the little baby jesus would be proud of you if you could tell me.
thanks.
Posted: Fri Oct 28, 2005 3:15 pm
by livid7
I had a dream and the little baby jesus taught me how to change the local alias value - there is a key in the /application support/adium 2.0/users/default/accounts/1.plist called <key>FullNameAttr</key> followed by <data> insert encrypted sh*t here </data>. by deleting the key and the data the alias reverts back to the name of the account - i.e.
user@server.com
figured I would at least post my solutions as i hate going through messages where people don't ever post the solutions they find to their problems.
Posted: Fri Oct 28, 2005 4:56 pm
by evands
The 'encrypted data' is the NSData form of an NSAttributedString.
Posted: Fri Oct 28, 2005 6:42 pm
by livid7
yea...I figured it wasn't *really* encrypted, but it is encrypted to my human eyes. - probably should have read "insert cryptic sh*t here" ;P I am going under the impression that the value is set through the gui and is stored there as the NSData form of that string?
thanks. -alex
Posted: Fri Oct 28, 2005 8:59 pm
by evands
livid7 wrote:yea...I figured it wasn't *really* encrypted, but it is encrypted to my human eyes. - probably should have read "insert cryptic sh*t here" ;P I am going under the impression that the value is set through the gui and is stored there as the NSData form of that string?
thanks. -alex
Yup. As I mentioned in a previous post:
evands wrote:Local account alias: Preferences->Accounts-><the account>->Alias
You could set it for an account, then copy the generated NSData string to plists elsewhere to get the same value.
Posted: Fri Oct 28, 2005 9:05 pm
by livid7
Thanks for the help!
I guess I was being stubborn because I knew that one of those files contained the value for the alias as I was editing and making copies of the .plists and .xmls and it was inserting my name in other's accounts. can you break down the alphabet for me in some strings I can paste together to form new names? ;)
thanks for the help again, I really appreciate it!!!!
Posted: Fri Oct 28, 2005 9:19 pm
by evands
livid7 wrote:Thanks for the help!
I guess I was being stubborn because I knew that one of those files contained the value for the alias as I was editing and making copies of the .plists and .xmls and it was inserting my name in other's accounts. can you break down the alphabet for me in some strings I can paste together to form new names?
thanks for the help again, I really appreciate it!!!!
I have no idea how NSData encodes NSAttributedString objects, sorry... it's all under-the-hood magic, the beauty of information hiding. I doubt you'll be able to form an NSData alphabet, though I could be wrong...
Posted: Fri Oct 28, 2005 9:51 pm
by livid7
I was just playing around about the alphabet thing...:D I doubt it would work either and even if it did it would be a complete waste of time to figure out.
thank you though!